Skip to content

Commit 247ab14

Browse files
committed
Yoda comparison disallow you must
1 parent c6b9224 commit 247ab14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
</rule>
8888
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
8989
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator"/>
90+
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/>
9091
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/>
9192
<rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineCondition">
9293
<properties>

0 commit comments

Comments
 (0)