diff options
author | William Desportes <williamdes@wdes.fr> | 2019-11-01 12:12:56 +0100 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-11-01 12:13:22 +0100 |
commit | 4a919aebab5d1a1f7d7bae72ccfdf0bab23586aa (patch) | |
tree | eac75b37ee03a079b5f32daf2456df3fce9f9ec0 | |
parent | 3c174cb8bb344bc4b0f816a6f44752bc1cac8c40 (diff) | |
download | sql-parser-4a919aebab5d1a1f7d7bae72ccfdf0bab23586aa.zip sql-parser-4a919aebab5d1a1f7d7bae72ccfdf0bab23586aa.tar.gz sql-parser-4a919aebab5d1a1f7d7bae72ccfdf0bab23586aa.tar.bz2 |
Fix php compatiblity (array syntax)
Ref: fd4c4f34715070d7f7238ab3838935863a92f556
Signed-off-by: William Desportes <williamdes@wdes.fr>
-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']; |