Skip to content

Commit e63ede7

Browse files
committed
Composer/ruleset: update for PHPCompatibility 10.0.0
Already allow for PHPCompatibility 10.0.0 which is due in not too long. For external standards which use this ruleset, always allow for the current major and the next major if in active development. This prevents issues with Composer not being able to install on dev branches. Includes some updates to the ruleset exclusions for new tokens being sniffed for in PHPCompatibility 10.0.0 (which are backfilled in PHPCS, so not a problem for PHPCS standards to use).
1 parent 3a57672 commit e63ede7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

PHPCSDev/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<exclude name="PHPCompatibility.Constants.NewConstants.t_yield_fromFound"/>
2525
<exclude name="PHPCompatibility.Constants.NewConstants.t_bad_characterFound"/>
2626
<exclude name="PHPCompatibility.Constants.NewConstants.t_fnFound"/>
27+
<exclude name="PHPCompatibility.Constants.NewConstants.t_matchFound"/>
28+
<exclude name="PHPCompatibility.Constants.NewConstants.t_nullsafe_object_operatorFound"/>
29+
<exclude name="PHPCompatibility.Constants.RemovedConstants.t_bad_characterFound"/>
2730
</rule>
2831

2932

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require" : {
2323
"php" : ">=5.4",
2424
"squizlabs/php_codesniffer" : "^3.5.0",
25-
"phpcompatibility/php-compatibility" : "^9.0.0",
25+
"phpcompatibility/php-compatibility" : "^9.0.0 || ^10.0.0",
2626
"dealerdirect/phpcodesniffer-composer-installer" : "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7"
2727
},
2828
"require-dev" : {

0 commit comments

Comments
 (0)