Skip to content

Support PHP 8.0 through 8.4#3

Closed
lphoumpakka wants to merge 2 commits into
developfrom
fix-php-versions
Closed

Support PHP 8.0 through 8.4#3
lphoumpakka wants to merge 2 commits into
developfrom
fix-php-versions

Conversation

@lphoumpakka

@lphoumpakka lphoumpakka commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Note

Low Risk
Runtime requirement is relaxed and CI/tooling only; Facet.php changes are style/suppressions with no logic changes.

Overview
Widens official PHP support from 8.3-only to ^8.0, dropping Composer’s pinned platform.php 8.3 so installs are no longer forced to that runtime.

CI and tooling follow the new range: the quality workflow runs codesniffer on a matrix of PHP 8.0 and 8.4 (8.0 installs deps with --ignore-platform-reqs), release builds use PHP 8.4, and PHPCompatibility in phpcs.xml is set to 8.0-.

classes/Facet.php only gets a spacing fix in isset() and PHPCS suppressions around the existing dynamic slug IN (...) delete query—no behavioral change.

composer.lock is regenerated (dev dependency bumps, including roots/wordpress-no-content 6.9.4 and refreshed roave/security-advisories).

Reviewed by Cursor Bugbot for commit 9470a98. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 60d0b94. Configure here.


- name: Install composer dependencies
run: composer install
run: composer install ${{ matrix.php-version == '8.0' && '--ignore-platform-reqs' || '' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP 8.4 CI install fails

High Severity

The workflow adds a PHP 8.4 matrix job but only passes --ignore-platform-reqs for PHP 8.0. The locked dev dependency vimeo/psalm (5.26.1) declares support only through PHP 8.3, so a normal composer install on 8.4 should fail platform checks and the Codesniffer job for 8.4 never reaches composer cs.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 60d0b94. Configure here.

@lphoumpakka lphoumpakka deleted the fix-php-versions branch June 11, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant