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 53545af..7fc1a75 100644
--- a/src/Lexer.php
+++ b/src/Lexer.php
@@ -877,7 +877,7 @@ class Lexer extends Core
$flags |= Token::FLAG_SYMBOL_SYSTEM;
}
} elseif ($flags & Token::FLAG_SYMBOL_PARAMETER) {
- if ($this->last + 1 < $this->len) {
+ if ($token !== '?' && $this->last + 1 < $this->len) {
++$this->last;
}
} else {