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.
1 parent 298946c commit 21e649bCopy full SHA for 21e649b
src/Tokenizers/PHP.php
@@ -2259,10 +2259,6 @@ protected function tokenize($string)
2259
$tokenType = $tokens[$i];
2260
}
2261
2262
- if ($tokenType === null) {
2263
- continue;
2264
- }
2265
-
2266
if ($tokenType === T_STATIC
2267
&& ($lastSeenNonEmpty === T_DOUBLE_COLON
2268
|| $lastSeenNonEmpty === '(')
@@ -2291,7 +2287,7 @@ protected function tokenize($string)
2291
2287
2292
2288
if ($tokenType === T_FUNCTION
2293
2289
|| $tokenType === T_FN
2294
- || isset(Tokens::$methodPrefixes[$tokenType]) === true
2290
+ || @isset(Tokens::$methodPrefixes[$tokenType]) === true
2295
|| isset(Tokens::$scopeModifiers[$tokenType]) === true
2296
|| $tokenType === T_VAR
2297
|| $tokenType === T_READONLY
0 commit comments