Skip to content

Commit a858fc9

Browse files
committed
PHP/YodaConditions: use new Collections::ternaryOperators() token array
1 parent d2421de commit a858fc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

WordPress/Sniffs/PHP/YodaConditionsSniff.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ public function register() {
4343

4444
$starters = Tokens::$booleanOperators;
4545
$starters += Tokens::$assignmentTokens;
46+
$starters += Collections::ternaryOperators();
4647
$starters[ \T_CASE ] = \T_CASE;
4748
$starters[ \T_RETURN ] = \T_RETURN;
48-
$starters[ \T_INLINE_THEN ] = \T_INLINE_THEN;
49-
$starters[ \T_INLINE_ELSE ] = \T_INLINE_ELSE;
5049
$starters[ \T_SEMICOLON ] = \T_SEMICOLON;
5150
$starters[ \T_OPEN_PARENTHESIS ] = \T_OPEN_PARENTHESIS;
5251

0 commit comments

Comments
 (0)