Commit 92a5797
Fix tests: bug-7963, bug-13978
bug-7963: loosen `@phpstan-return` to `array<int, non-empty-list<mixed>>`
to match the actual heterogeneous list-of-lists return shape — the prior
shape required positional `string`/`array<string, mixed>` types that no
union member satisfies.
bug-13978: PHPStan checks `@param-out` at every mutation, so the
intermediate state with both `key1` and `key2` (between `$item['key2'] =`
and `unset($item['key1'])`) needs to be in the union too.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent afc78ff commit 92a5797
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments