Skip to content

Commit de688d5

Browse files
committed
Ruleset: allow for PHP 8.0 token constant
PHP 8.0 introduced the `T_ATTRIBUTE` token, which wasn't accounted for yet in this ruleset. Detection for `T_ATTRIBUTE` is already in PHPCompatibility 10.0. As PHPCS polyfills the token, we should allow for it to be used in external PHPCS standards.
1 parent 0bc8593 commit de688d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PHPCSDev/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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_attributeFound"/>
2728
<exclude name="PHPCompatibility.Constants.NewConstants.t_matchFound"/>
2829
<exclude name="PHPCompatibility.Constants.NewConstants.t_nullsafe_object_operatorFound"/>
2930
<exclude name="PHPCompatibility.Constants.NewConstants.t_name_fully_qualifiedFound"/>

0 commit comments

Comments
 (0)