Skip to content

Commit c6f4c4c

Browse files
committed
Fix PHP 8.3 deprecation
1 parent d22a9f1 commit c6f4c4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
use function get_class;
128128
use function implode;
129129
use function in_array;
130+
use function is_numeric;
130131
use function is_string;
131132
use function ltrim;
132133
use function sprintf;
@@ -1420,7 +1421,7 @@ private function resolveType(string $exprString, Expr $node): Type
14201421
foreach ($varScalars as $varValue) {
14211422
if ($node instanceof Expr\PreInc) {
14221423
++$varValue;
1423-
} else {
1424+
} elseif (is_numeric($varValue)) {
14241425
--$varValue;
14251426
}
14261427

0 commit comments

Comments
 (0)