summaryrefslogtreecommitdiffstats
path: root/src/Components/OptionsArray.php
diff options
context:
space:
mode:
authorBruno Perel <brunoperel@gmail.com>2018-11-26 20:02:58 +0100
committerBruno Perel <brunoperel@gmail.com>2018-11-26 20:09:00 +0100
commitef7968e5a80de41c2bbd5ad3d93b6f47fe3f9705 (patch)
treed1025e7c4f85973ef4a92789eafb825b70ce4472 /src/Components/OptionsArray.php
parent513ed8175bdc0fc17a192ea29757cf8fee178c2a (diff)
downloadsql-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.php8
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(