summaryrefslogtreecommitdiffstats
path: root/src/Utils/BufferedQuery.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/Utils/BufferedQuery.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/Utils/BufferedQuery.php')
-rw-r--r--src/Utils/BufferedQuery.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Utils/BufferedQuery.php b/src/Utils/BufferedQuery.php
index 9b0cda7..ee0dca4 100644
--- a/src/Utils/BufferedQuery.php
+++ b/src/Utils/BufferedQuery.php
@@ -191,7 +191,7 @@ class BufferedQuery
* treated differently, because of the preceding backslash, it will
* be ignored.
*/
- if ((($this->status & static::STATUS_COMMENT) == 0) && ($this->query[$i] === '\\')) {
+ if ((($this->status & static::STATUS_COMMENT) === 0) && ($this->query[$i] === '\\')) {
$this->current .= $this->query[$i] . $this->query[++$i];
continue;
}
@@ -319,7 +319,7 @@ class BufferedQuery
}
// Checking if the delimiter definition ended.
- if (($delimiter != '')
+ if (($delimiter !== '')
&& ((($i < $len) && Context::isWhitespace($this->query[$i]))
|| (($i === $len) && $end))
) {