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 ef1ca68..3d33b91 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 ($this->last + 1 < $this->len) {
+ if ('?' !== $token && $this->last + 1 < $this->len) {
++$this->last;
}
} else {