Skip to content

Commit fb1db53

Browse files
committed
CS: start using PHPCompatibility 10
Long anticipated, finally here: PHPCompatibility 10.0.0-alpha1/alpha2 🎉 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 outweigh 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 now 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 * https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/10.0.0-alpha2
1 parent 955f87d commit fb1db53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
},
3434
"require-dev": {
3535
"phpunit/phpunit": "^5.7.26 || ^6.0 || ^7.0 || >=8.0 <8.5.12 || ^8.5.14 || ^9.0",
36-
"phpcompatibility/php-compatibility": "^9.3.0",
37-
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0"
36+
"phpcompatibility/php-compatibility": "^10.0.0@dev"
3837
},
3938
"autoload": {
4039
"psr-4": {

0 commit comments

Comments
 (0)