Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 21, 2025

Long anticipated, finally here: PHPCompatibility 10.0.0-alpha1 🎉

PHPCompatibility 10.0.0 brings huge improvements in both what is being detected (> 50 new sniffs), as well as the detection accuracy for pre-existing sniffs.

Even though still "unstable", it is stable enough for our purposes and the advantages of using it outweight the disadvantage of it being an unstable version. By setting the minimum-stability and prefer-stable settings in the composer.json, we can ensure that we don't get the dev-develop branch, but rather get a 10.0.0 tag, unstable or not.

And what with the improved detection, a number of php incompatibilities previously not flagged, are not flagged, even though we already handle them correctly via conditions. So this commit also adds a few selective ignore comments for those few situations where they are needed.

Ref:

@jrfnl jrfnl added this to the 2.0.16 milestone Nov 21, 2025
Long anticipated, finally here: PHPCompatibility 10.0.0-alpha1 🎉

PHPCompatibility 10.0.0 brings huge improvements in both what is being detected (> 50 new sniffs), as well as the detection accuracy for pre-existing sniffs.

Even though still "unstable", it is stable enough for our purposes and the advantages of using it outweight the disadvantage of it being an unstable version. By setting the `minimum-stability` and `prefer-stable` settings in the `composer.json`, we can ensure that we don't get the `dev-develop` branch, but rather get a `10.0.0` tag, unstable or not.

And what with the improved detection, a number of php incompatibilities previously not flagged, are not flagged, even though we already handle them correctly via conditions.
So this commit also adds a few selective ignore comments for those few situations where they are needed.

Ref:
* https://github.com/PHPCompatibility/PHPCompatibility/wiki/Upgrading-to-PHPCompatibility-10.0
* https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/10.0.0-alpha1
@jrfnl jrfnl force-pushed the feature/cs-update-phpcompatibility-10 branch from 5646743 to 23198fc Compare November 21, 2025 11:54
@schlessera schlessera merged commit e02a8b9 into develop Nov 21, 2025
32 checks passed
@schlessera schlessera deleted the feature/cs-update-phpcompatibility-10 branch November 21, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants