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 fa337a9 commit dc64635Copy full SHA for dc64635
tests/PHPStan/Analyser/nsrt/bug-10264.php
@@ -33,7 +33,7 @@ public function sayHello(array $c): void
33
assertType('list<int>', $c);
34
if (count($c) > 0) {
35
$c = array_map(fn() => new stdClass(), $c);
36
- assertType('non-empty-list<stdClass>', $c);
+ assertType('non-empty-list<stdClass>&hasOffsetValue(0, stdClass)', $c);
37
} else {
38
assertType('array{}', $c);
39
}
0 commit comments