Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 5, 2025

Proposed Changes

PHPCompatibility has released a new version: 10.0.0-alpha1.

Even though this is an alpha version, it still offers significant improvements compared to the last 9.x release (from 2019), so I'd strongly recommend switching over to improve our safeguarding against introduction of PHP cross-version incompatible code.

Note: the version restraints in the composer.json are widened instead of bumped to prevent us running into install problems when testing against a wide range of PHPCS versions, as the minimum PHPCS version of PHPCompatibility 10 is currently PHPCS 3.13.3, which is much higher than our own minimum PHPCS version. PHPCompatibility 9.x still supports PHPCS 2.x (and 3.x), so allowing both 9 + 10 should prevent issues and should still run the CS check using PHPCompatibility 10.

Ref:

Suggested changelog entry

N/A

PHPCompatibility has released a new version: 10.0.0-alpha1.

Even though this is an alpha version, it still offers significant improvements compared to the last 9.x release (from 2019), so I'd strongly recommend switching over to improve our safeguarding against introduction of PHP cross-version incompatible code.

Note: the version restraints in the `composer.json` are widened instead of bumped to prevent us running into install problems when testing against a wide range of PHPCS versions, as the minimum PHPCS version of PHPCompatibility 10 is currently PHPCS 3.13.3, which is much higher than our own minimum PHPCS version.
PHPCompatibility 9.x still supports PHPCS 2.x (and 3.x), so allowing both 9 + 10 should prevent issues and should still run the CS check using PHPCompatibility 10.

Ref:
* https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/10.0.0-alpha1
@jrfnl jrfnl added this to the 1.2.0 milestone Nov 5, 2025
@jrfnl jrfnl requested a review from Potherca November 5, 2025 12:37
@jrfnl jrfnl mentioned this pull request Nov 5, 2025
13 tasks
@jrfnl jrfnl merged commit 0561345 into main Nov 11, 2025
74 of 75 checks passed
@jrfnl jrfnl deleted the feature/update-to-phpcompat-10 branch November 11, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants