Commit 8f7ba26
Remove dim expression coercion, fix HasOffsetValueType key coercion instead
Instead of coercing array key expressions (e.g. String_('2') → Int_(2))
when constructing intertwined ref dim expressions, use the original key
expression directly and fix HasOffsetValueType to apply toArrayKey()
coercion when matching offset types.
This properly handles PHP's array key coercion ('2' → 2) in the type
system rather than in expression construction, which works correctly
for union types as well.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e382c23 commit 8f7ba26
2 files changed
Lines changed: 4 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
952 | 951 | | |
953 | 952 | | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
| 966 | + | |
980 | 967 | | |
981 | 968 | | |
982 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
0 commit comments