Skip to content

Commit 194ff6e

Browse files
committed
Fix test
1 parent cd5a51d commit 194ff6e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tests/PHPStan/Reflection/ReflectionProviderTest.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@ public function dataFunctionThrowType(): iterable
2626
];
2727
}
2828

29-
yield [
30-
'bcdiv',
31-
new ObjectType('DivisionByZeroError'),
32-
];
29+
if (PHP_VERSION_ID >= 80000) {
30+
yield [
31+
'bcdiv',
32+
new ObjectType('DivisionByZeroError'),
33+
];
34+
} else {
35+
yield [
36+
'bcdiv',
37+
null,
38+
];
39+
}
3340

3441
yield [
3542
'GEOSRelateMatch',

0 commit comments

Comments
 (0)