Skip to content

Commit 798d137

Browse files
committed
Update sniff names for ignored short arrays and short ternaries
These sniffs have been renamed upstream; I'm updating the ignore refernces to them here to avoid errors parsing the HM ruleset.
1 parent 11e1447 commit 798d137

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

HM/ruleset.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error" />
2525
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
2626

27-
<!-- We like short arrays and ternaries around here -->
28-
<exclude name="Generic.Arrays.DisallowShortArraySyntax" />
29-
<exclude name="WordPress.PHP.DisallowShortTernary" />
27+
<!-- We like short arrays and short ternaries around here -->
28+
<exclude name="Universal.Arrays.DisallowShortArraySyntax" />
29+
<exclude name="Universal.Operators.DisallowShortTernary" />
3030

3131
<!--
3232
OK, real talk right now. Yoda conditions are ridiculous.

0 commit comments

Comments
 (0)