Skip to content

Commit 5008d74

Browse files
authored
allow or as logical operator (#7)
1 parent fabb264 commit 5008d74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Pantheon-WP-Minimum/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<type>error</type>
4444
<message>eval() is a security risk and is not allowed.</message>
4545
</rule>
46+
<rule ref="Squiz.Operators.ValidLogicalOperators">
47+
<exclude name="Squiz.Operators.ValidLogicalOperators.NotAllowed" />
48+
</rule>
4649

4750
<!-- Disallow create_function() -->
4851
<rule ref="WordPress.PHP.RestrictedPHPFunctions"/>

0 commit comments

Comments
 (0)