diff options
-rw-r--r-- | src/Statement.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Statement.php b/src/Statement.php index 2e7fc49..f9e0902 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -323,7 +323,7 @@ abstract class Statement // Fix Issue #221: As `truncate` is not a keyword // but it might be the beginning of a statement of truncate, // so let the value use the keyword field for truncate type. - $token_value = in_array($token->keyword, ['TRUNCATE']) ? $token->keyword : $token->value; + $token_value = in_array($token->keyword, array('TRUNCATE')) ? $token->keyword : $token->value; if (! empty(Parser::$KEYWORD_PARSERS[$token_value]) && $list->idx < $list->count) { $class = Parser::$KEYWORD_PARSERS[$token_value]['class']; $field = Parser::$KEYWORD_PARSERS[$token_value]['field']; |