Skip to content

Commit dc64635

Browse files
committed
Fix test because of more explicit type
1 parent fa337a9 commit dc64635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPStan/Analyser/nsrt/bug-10264.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function sayHello(array $c): void
3333
assertType('list<int>', $c);
3434
if (count($c) > 0) {
3535
$c = array_map(fn() => new stdClass(), $c);
36-
assertType('non-empty-list<stdClass>', $c);
36+
assertType('non-empty-list<stdClass>&hasOffsetValue(0, stdClass)', $c);
3737
} else {
3838
assertType('array{}', $c);
3939
}

0 commit comments

Comments
 (0)