Repository navigation
Commit 54bd526
committed
Set the empty array apart only beside non-empty shapes on both sides
A shape of only optional keys holds the empty array already: without the
empty array, the other side no longer covered its sizes and the shapes
fell back to a general array, such as array<'aware'|'name', ...> for
$values['aware'][] = ...; $values['name'] = ... in a loop. And when one
side holds the empty array only, the join never merged key by key, so
setting it apart only changed which loops degrade to a general array.
Amp-Thread-ID: https://ampcode.com/threads/T-01a21c27-3464-768a-b452-8bf169dee3641 parent 6988863 commit 54bd526
4 files changed
Lines changed: 60 additions & 11 deletions
File tree
- src/Analyser
- tests/PHPStan/Analyser/nsrt
- turbo-ext/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5288 | 5288 | | |
5289 | 5289 | | |
5290 | 5290 | | |
5291 | | - | |
5292 | | - | |
| 5291 | + | |
| 5292 | + | |
| 5293 | + | |
| 5294 | + | |
| 5295 | + | |
5293 | 5296 | | |
5294 | | - | |
5295 | | - | |
5296 | | - | |
5297 | | - | |
| 5297 | + | |
| 5298 | + | |
| 5299 | + | |
| 5300 | + | |
| 5301 | + | |
| 5302 | + | |
| 5303 | + | |
| 5304 | + | |
| 5305 | + | |
| 5306 | + | |
| 5307 | + | |
| 5308 | + | |
| 5309 | + | |
| 5310 | + | |
| 5311 | + | |
| 5312 | + | |
| 5313 | + | |
| 5314 | + | |
5298 | 5315 | | |
5299 | | - | |
5300 | | - | |
5301 | 5316 | | |
5302 | 5317 | | |
5303 | 5318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9827 | 9827 | | |
9828 | 9828 | | |
9829 | 9829 | | |
9830 | | - | |
9831 | | - | |
| 9830 | + | |
| 9831 | + | |
9832 | 9832 | | |
| 9833 | + | |
9833 | 9834 | | |
| 9835 | + | |
| 9836 | + | |
| 9837 | + | |
| 9838 | + | |
| 9839 | + | |
| 9840 | + | |
| 9841 | + | |
| 9842 | + | |
| 9843 | + | |
| 9844 | + | |
9834 | 9845 | | |
9835 | 9846 | | |
9836 | 9847 | | |
| |||
0 commit comments