Skip to content

Commit 0ac5e52

Browse files
committed
PHPCompatibilitySymfonyPolyfillPHP80: update ruleset for PHPCompatibility 10.0-alpha1
As of PHPCompatibility 10.0.0, we detect and handle the use of PHP 8.0 attributes (though I expect _how_ to still change a little more). In this case, an attribute is applied to the polyfill for the `Attribute` class, so we need to ignore that attribute ;-)
1 parent 893f209 commit 0ac5e52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PHPCompatibilitySymfonyPolyfillPHP80/ruleset.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@
2222
<exclude name="PHPCompatibility.Classes.NewClasses.valueerrorFound"/>
2323
</rule>
2424

25+
<!-- Prevent false positives being thrown when run over the code of polyfill-util itself. -->
26+
<rule ref="PHPCompatibility.Attributes.NewAttributes.PHPNativeAttributeFound">
27+
<exclude-pattern>/polyfill-php80/Resources/stubs/Attribute\.php$</exclude-pattern>
28+
</rule>
29+
2530
</ruleset>

0 commit comments

Comments
 (0)