Skip to content

Commit

Permalink
Fix PHP 8.3 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jul 18, 2023
1 parent d22a9f1 commit c6f4c4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Analyser/MutatingScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
use function get_class;
use function implode;
use function in_array;
use function is_numeric;
use function is_string;
use function ltrim;
use function sprintf;
Expand Down Expand Up @@ -1420,7 +1421,7 @@ private function resolveType(string $exprString, Expr $node): Type
foreach ($varScalars as $varValue) {
if ($node instanceof Expr\PreInc) {
++$varValue;
} else {
} elseif (is_numeric($varValue)) {
--$varValue;
}

Expand Down

0 comments on commit c6f4c4c

Please sign in to comment.