We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2421de commit a858fc9Copy full SHA for a858fc9
WordPress/Sniffs/PHP/YodaConditionsSniff.php
@@ -43,10 +43,9 @@ public function register() {
43
44
$starters = Tokens::$booleanOperators;
45
$starters += Tokens::$assignmentTokens;
46
+ $starters += Collections::ternaryOperators();
47
$starters[ \T_CASE ] = \T_CASE;
48
$starters[ \T_RETURN ] = \T_RETURN;
- $starters[ \T_INLINE_THEN ] = \T_INLINE_THEN;
49
- $starters[ \T_INLINE_ELSE ] = \T_INLINE_ELSE;
50
$starters[ \T_SEMICOLON ] = \T_SEMICOLON;
51
$starters[ \T_OPEN_PARENTHESIS ] = \T_OPEN_PARENTHESIS;
52
0 commit comments