diff options
author | Bruno Perel <brunoperel@gmail.com> | 2018-11-26 20:02:58 +0100 |
---|---|---|
committer | Bruno Perel <brunoperel@gmail.com> | 2018-11-26 20:09:00 +0100 |
commit | ef7968e5a80de41c2bbd5ad3d93b6f47fe3f9705 (patch) | |
tree | d1025e7c4f85973ef4a92789eafb825b70ce4472 /src/Components/OptionsArray.php | |
parent | 513ed8175bdc0fc17a192ea29757cf8fee178c2a (diff) | |
download | sql-parser-ef7968e5a80de41c2bbd5ad3d93b6f47fe3f9705.zip sql-parser-ef7968e5a80de41c2bbd5ad3d93b6f47fe3f9705.tar.gz sql-parser-ef7968e5a80de41c2bbd5ad3d93b6f47fe3f9705.tar.bz2 |
Use triple (in)equalities when type compatibility is ensured
Diffstat (limited to 'src/Components/OptionsArray.php')
-rw-r--r-- | src/Components/OptionsArray.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Components/OptionsArray.php b/src/Components/OptionsArray.php index 871772b..fd02d22 100644 --- a/src/Components/OptionsArray.php +++ b/src/Components/OptionsArray.php @@ -247,10 +247,10 @@ class OptionsArray extends Component */ if ($state === 1 && $lastOption - && ($lastOption[1] == 'expr' - || $lastOption[1] == 'var' - || $lastOption[1] == 'var=' - || $lastOption[1] == 'expr=') + && ($lastOption[1] === 'expr' + || $lastOption[1] === 'var' + || $lastOption[1] === 'var=' + || $lastOption[1] === 'expr=') ) { $parser->error( sprintf( |