Commit eafd010
Refactor: use Type::getArrays() instead of manual union decomposition
Use $arrayType->getArrays() to iterate over array variants directly,
instead of manually decomposing union types and then calling
getConstantArrays(). This simplifies the iteration and avoids
instanceof UnionType checks.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6e39abc commit eafd010
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | | - | |
| 189 | + | |
191 | 190 | | |
192 | | - | |
193 | | - | |
| 191 | + | |
| 192 | + | |
194 | 193 | | |
195 | | - | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
203 | | - | |
| 201 | + | |
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
207 | | - | |
208 | 205 | | |
209 | | - | |
| 206 | + | |
210 | 207 | | |
211 | 208 | | |
212 | 209 | | |
| |||
0 commit comments