Skip to content

Commit f78415e

Browse files
committed
Different fix - part 2
1 parent 298946c commit f78415e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Tokenizers/PHP.php

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

2262-
if ($tokenType === null) {
2263-
continue;
2264-
}
2265-
22662262
if ($tokenType === T_STATIC
22672263
&& ($lastSeenNonEmpty === T_DOUBLE_COLON
22682264
|| $lastSeenNonEmpty === '(')
@@ -2291,8 +2287,8 @@ protected function tokenize($string)
22912287

22922288
if ($tokenType === T_FUNCTION
22932289
|| $tokenType === T_FN
2294-
|| isset(Tokens::$methodPrefixes[$tokenType]) === true
2295-
|| isset(Tokens::$scopeModifiers[$tokenType]) === true
2290+
|| @isset(Tokens::$methodPrefixes[$tokenType]) === true
2291+
|| @isset(Tokens::$scopeModifiers[$tokenType]) === true
22962292
|| $tokenType === T_VAR
22972293
|| $tokenType === T_READONLY
22982294
) {

0 commit comments

Comments
 (0)