Commit 6f58959
Add test for list<string> key type preserved through ArrayIterator
Adds a test case from phpstan.org/r/c448c867 verifying that when a
list<string> is passed to new ArrayIterator(), the inferred key type
is int<0, max> (not generalized to int).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f88e210 commit 6f58959
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
27 | 41 | | |
28 | 42 | | |
29 | 43 | | |
| |||
0 commit comments