Skip to content

Commit 298946c

Browse files
committed
Fix 3 ?
1 parent 9782862 commit 298946c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tokenizers/PHP.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,10 @@ protected function tokenize($string)
22592259
$tokenType = $tokens[$i];
22602260
}
22612261

2262+
if ($tokenType === null) {
2263+
continue;
2264+
}
2265+
22622266
if ($tokenType === T_STATIC
22632267
&& ($lastSeenNonEmpty === T_DOUBLE_COLON
22642268
|| $lastSeenNonEmpty === '(')

0 commit comments

Comments
 (0)