Skip to content

Commit 3c0f6fa

Browse files
committed
Also keep short ternaries around
1 parent 5d632e4 commit 3c0f6fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WP_CLI_CS/ruleset.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474

7575
<!-- We want to stick with short array syntax for WP-CLI. -->
7676
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
77+
78+
<!-- Keep short ternaries around for WP-CLI. -->
79+
<exclude name="WordPress.PHP.DisallowShortTernary"/>
80+
7781
</rule>
7882

7983

0 commit comments

Comments
 (0)