We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a63e78 + a5f9784 commit fed6752Copy full SHA for fed6752
src/Tokenizers/PHP.php
@@ -1290,7 +1290,9 @@ protected function tokenize($string)
1290
1291
// Next was an open parenthesis, now check what is before the match keyword.
1292
for ($y = ($stackPtr - 1); $y >= 0; $y--) {
1293
- if (isset(Util\Tokens::$emptyTokens[$tokens[$y][0]]) === true) {
+ if (is_array($tokens[$y]) === true
1294
+ && isset(Util\Tokens::$emptyTokens[$tokens[$y][0]]) === true
1295
+ ) {
1296
continue;
1297
}
1298
0 commit comments