Skip to content

Commit 2d88994

Browse files
committed
Replace short array syntax by long array syntax because QA branch is compatible with PHP 5.3 too.
1 parent 419e7ae commit 2d88994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Lexer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ private function solveAmbiguityOnStarOperator()
366366
while (null !== ($starToken = $this->list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, '*'))) {
367367
// ::getNext already gets rid of whitespaces and comments.
368368
if (($next = $this->list->getNext()) !== null) {
369-
if (($next->type === Token::TYPE_KEYWORD && in_array($next->value, ['FROM', 'USING'], true))
370-
|| ($next->type === Token::TYPE_OPERATOR && in_array($next->value, [',', ')'], true))
369+
if (($next->type === Token::TYPE_KEYWORD && in_array($next->value, array('FROM', 'USING'), true))
370+
|| ($next->type === Token::TYPE_OPERATOR && in_array($next->value, array(',', ')'), true))
371371
) {
372372
$starToken->flags = Token::FLAG_OPERATOR_SQL;
373373
}

0 commit comments

Comments
 (0)