Skip to content

Commit 750e6c4

Browse files
Revert
1 parent 9698573 commit 750e6c4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Reflection/InitializerExprTypeResolver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,14 +2242,13 @@ private function integerRangeMath(Type $range, BinaryOp $node, Type $operand): T
22422242
$min = null;
22432243
}
22442244

2245-
$operandMax = $operand->getMax();
2246-
if ($operandMax === null) {
2245+
if ($operand->getMax() === null) {
22472246
$min = null;
22482247
$max = null;
22492248
} elseif ($rangeMax !== null) {
22502249
if ($rangeMin !== null && $operand->getMin() === null) {
22512250
/** @var int|float $min */
2252-
$min = $rangeMin - $operandMax;
2251+
$min = $rangeMin - $operand->getMax();
22532252
$max = null;
22542253
} elseif ($operand->getMin() !== null) {
22552254
/** @var int|float $max */

0 commit comments

Comments
 (0)