Skip to content

Commit c314822

Browse files
committed
Revert "PHP 8.5 | Tokenizer/PHP: temporarily silence "Using null as an array offset" deprecation"
This reverts commit 6b82a86 / PR 1215 as it is no longer needed.
1 parent 1a26845 commit c314822

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Tokenizers/PHP.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ protected function tokenize($string)
22712271
}
22722272

22732273
if ($prevNonEmpty === null
2274-
&& @isset(Tokens::$emptyTokens[$tokenType]) === false
2274+
&& isset(Tokens::$emptyTokens[$tokenType]) === false
22752275
) {
22762276
// Found the previous non-empty token.
22772277
if ($tokenType === ':' || $tokenType === ',' || $tokenType === T_ATTRIBUTE_END) {
@@ -2290,8 +2290,8 @@ protected function tokenize($string)
22902290

22912291
if ($tokenType === T_FUNCTION
22922292
|| $tokenType === T_FN
2293-
|| @isset(Tokens::$methodPrefixes[$tokenType]) === true
2294-
|| @isset(Tokens::$scopeModifiers[$tokenType]) === true
2293+
|| isset(Tokens::$methodPrefixes[$tokenType]) === true
2294+
|| isset(Tokens::$scopeModifiers[$tokenType]) === true
22952295
|| $tokenType === T_VAR
22962296
|| $tokenType === T_READONLY
22972297
) {
@@ -2314,7 +2314,7 @@ protected function tokenize($string)
23142314
break;
23152315
}
23162316

2317-
if (@isset(Tokens::$emptyTokens[$tokenType]) === false) {
2317+
if (isset(Tokens::$emptyTokens[$tokenType]) === false) {
23182318
$lastSeenNonEmpty = $tokenType;
23192319
}
23202320
}//end for

0 commit comments

Comments
 (0)