Skip to content

Commit 8da3d27

Browse files
committed
Disable ::class on objects
1 parent 612ffc4 commit 8da3d27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

phpcs.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@
8080
<property name="maxLinesCount" value="1"/>
8181
</properties>
8282
</rule>
83-
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
83+
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference">
84+
<properties>
85+
<property name="enableOnObjects" value="false"/>
86+
</properties>
87+
</rule>
8488
<rule ref="SlevomatCodingStandard.Functions.StaticClosure"/>
8589
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/>
8690
<rule ref="SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator"/>

0 commit comments

Comments
 (0)