Skip to content

Commit dbd2ee8

Browse files
committed
Composer/ruleset: allow for (some) PHP 8.4 token constants
PHP 8.4 introduced a few new token constants related to asymmetric visibility. Detection for these new tokens is already in PHPCompatibility 10.0. As PHPCS polyfills these tokens, we should allow for these to be used in external PHPCS standards. The token constants are backfilled by PHPCS as of version 3.13.0. Ref: PHPCSStandards/PHP_CodeSniffer 871
1 parent 24e2aa4 commit dbd2ee8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PHPCSDev/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
<exclude name="PHPCompatibility.Constants.NewConstants.t_name_relativeFound"/>
3232
<exclude name="PHPCompatibility.Constants.NewConstants.t_readonlyFound"/>
3333
<exclude name="PHPCompatibility.Constants.NewConstants.t_enumFound"/>
34+
<exclude name="PHPCompatibility.Constants.NewConstants.t_public_setFound"/>
35+
<exclude name="PHPCompatibility.Constants.NewConstants.t_protected_setFound"/>
36+
<exclude name="PHPCompatibility.Constants.NewConstants.t_private_setFound"/>
3437
<exclude name="PHPCompatibility.Constants.RemovedConstants.t_bad_characterFound"/>
3538
</rule>
3639

0 commit comments

Comments
 (0)