Skip to content

Commit 21e649b

Browse files
committed
Different fix
1 parent 298946c commit 21e649b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Tokenizers/PHP.php

Lines changed: 1 addition & 5 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,7 +2287,7 @@ protected function tokenize($string)
22912287

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

0 commit comments

Comments
 (0)