Skip to content

Commit e8d0051

Browse files
committed
fix pow test
The result changed because getSortedTypes is called somewhere which sorts the exponent's union type and leads to a change in the result.
1 parent af1eef3 commit e8d0051

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/PHPStan/Analyser/nsrt/pow.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ function (): void {
4747
$x = 4;
4848
}
4949

50-
assertType('int<4, 27>|int<16, 81>', pow($range, $x));
51-
assertType('int<4, 27>|int<16, 81>', $range ** $x);
50+
assertType('int<4, 81>', pow($range, $x));
51+
assertType('int<4, 81>', $range ** $x);
5252

53-
assertType('int<4, 27>|int<16, 64>', pow($x, $range));
54-
assertType('int<4, 27>|int<16, 64>', $x ** $range);
53+
assertType('int<4, 64>', pow($x, $range));
54+
assertType('int<4, 64>', $x ** $range);
5555

5656
assertType('int<4, 27>', pow($range, $range));
5757
assertType('int<4, 27>', $range ** $range);

0 commit comments

Comments
 (0)