Skip to content

Commit 2018e18

Browse files
committed
False positive: $this in enums
1 parent 69d1a95 commit 2018e18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SandFox_PHP81/ruleset.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
@see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
44
-->
55
<ruleset>
6-
<rule ref="SandFox_PHP80"/>
6+
<rule ref="SandFox_PHP80">
7+
<!-- Interferes with logic in enums -->
8+
<exclude name="PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext"/>
9+
</rule>
710
<config name="testVersion" value="8.1-"/>
811
</ruleset>

0 commit comments

Comments
 (0)