Repository navigation
Commit 217459a
committed
Drop the null check the destructured merge() result makes dead
merge() returns array{Type, null}|array{null, Type}, so once $a is null the
destructured $b is a Type. Also regenerates the AssignHandler declarations
for the new helper and adds the issue-bot reproducer of #12487, which the
destructuring narrowing fixes.
Amp-Thread-ID: https://ampcode.com/threads/T-01a22b9b-2b0a-7521-a915-75eebb3a519c1 parent 46db55e commit 217459a
3 files changed
Lines changed: 242 additions & 209 deletions
File tree
- src/Type/Combinator
- tests/PHPStan/Analyser/nsrt
- turbo-ext/src/generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments