Skip to content

Commit

Permalink
Merge pull request #37 from PHPCompatibility/feature/php80-polyfill-a…
Browse files Browse the repository at this point in the history
…llow-for-phptoken-class

PHP 8.0 polyfill: Update the ruleset
  • Loading branch information
jrfnl authored Oct 23, 2022
2 parents 141e5e5 + 610b50c commit a109ad2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions PHPCompatibilitySymfonyPolyfillPHP80/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<!-- https://github.com/symfony/polyfill-php80/tree/master/Resources/stubs -->
<exclude name="PHPCompatibility.Interfaces.NewInterfaces.stringableFound"/>
<exclude name="PHPCompatibility.Classes.NewClasses.attributeFound"/>
<exclude name="PHPCompatibility.Classes.NewClasses.phptokenFound"/>
<exclude name="PHPCompatibility.Classes.NewClasses.unhandledmatcherrorFound"/>
<exclude name="PHPCompatibility.Classes.NewClasses.valueerrorFound"/>
</rule>
Expand Down
2 changes: 2 additions & 0 deletions Test/SymfonyPolyfillPHP80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ class Foo implements Stringable {}
}

class MyAttributes extends \Attribute {}

if (is_a($token, PhpToken::class)) {}

0 comments on commit a109ad2

Please sign in to comment.