Skip to content

Commit adc5f0d

Browse files
committed
expectations
1 parent fd723ba commit adc5f0d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace PR4372;
4+
5+
use function PHPStan\debugScope;
6+
use function PHPStan\Testing\assertType;
7+
8+
function (string $s): void {
9+
$locations = [];
10+
for ($i = 0; $i < 10; $i++) {
11+
$locations[$i] = [];
12+
for ($j = 0; $j < 10; $j++) {
13+
$locations[$i][$j] = $s;
14+
}
15+
}
16+
17+
assertType('non-empty-array<int<0, 9>, non-empty-array<int<0, 9>, string>>', $locations);
18+
assertType('non-empty-array<int<0, 9>, string>>', $locations[0]);
19+
};

0 commit comments

Comments
 (0)