We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b20da commit e518d8fCopy full SHA for e518d8f
tests/PHPStan/Analyser/nsrt/bug-2471.php
@@ -23,6 +23,10 @@ public function test(): void
23
24
$x = array_fill_keys($y, null);
25
26
- assertType('array<string, null>', $x);
+ if (PHP_VERSION_ID >= 80000) {
27
+ assertType('array<string, null>', $x);
28
+ } else {
29
+ assertType('array<null>', $x);
30
+ }
31
}
32
0 commit comments