Skip to content

Commit 4a919ae

Browse files
committed
Fix php compatiblity (array syntax)
Ref: fd4c4f3 Signed-off-by: William Desportes <[email protected]>
1 parent 3c174cb commit 4a919ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Statement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function parse(Parser $parser, TokensList $list)
323323
// Fix Issue #221: As `truncate` is not a keyword
324324
// but it might be the beginning of a statement of truncate,
325325
// so let the value use the keyword field for truncate type.
326-
$token_value = in_array($token->keyword, ['TRUNCATE']) ? $token->keyword : $token->value;
326+
$token_value = in_array($token->keyword, array('TRUNCATE')) ? $token->keyword : $token->value;
327327
if (! empty(Parser::$KEYWORD_PARSERS[$token_value]) && $list->idx < $list->count) {
328328
$class = Parser::$KEYWORD_PARSERS[$token_value]['class'];
329329
$field = Parser::$KEYWORD_PARSERS[$token_value]['field'];

0 commit comments

Comments
 (0)