summaryrefslogtreecommitdiffstats
path: root/src/Lexer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Lexer.php')
-rw-r--r--src/Lexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Lexer.php b/src/Lexer.php
index 3d33b91..4c56402 100644
--- a/src/Lexer.php
+++ b/src/Lexer.php
@@ -872,7 +872,7 @@ class Lexer extends Core
$flags |= Token::FLAG_SYMBOL_SYSTEM;
}
} elseif ($flags & Token::FLAG_SYMBOL_PARAMETER) {
- if ('?' !== $token && $this->last + 1 < $this->len) {
+ if ($token !== '?' && $this->last + 1 < $this->len) {
++$this->last;
}
} else {