Commit 2ad0306
Replace initializedNonEmpty with initializedEmpty set in createFromConstantArray
Instead of setting initializedNonEmpty=true in createEmpty(), use the
inverse property initializedEmpty and set it in createFromConstantArray()
when the source array has no keys. This is cleaner because createEmpty()
is always used to build arrays that will have items added, while the only
truly "initialized empty" case is createFromConstantArray with an empty
ConstantArrayType (representing $a = [] imperative assignment).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 40956df commit 2ad0306
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 65 | + | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
| |||
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
444 | | - | |
| 445 | + | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
0 commit comments