Skip to content

Commit 14c814f

Browse files
committed
Using null coalesce operator instead of ternary operator
Signed-off-by: iifawzi <[email protected]>
1 parent 5c25e15 commit 14c814f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ public function parse()
507507
*
508508
* @var string
509509
*/
510-
$class = static::$STATEMENT_PARSERS[$statementName !== null ? $statementName : $token->keyword];
510+
$class = static::$STATEMENT_PARSERS[$statementName ?? $token->keyword];
511511

512512
/**
513513
* Processed statement.

0 commit comments

Comments
 (0)