Commit 6d616b3
Remove redundant array structure checks in ArrayHandler
ConstantArrayType::isCallable() already validates that the array has
exactly 2 elements with keys 0 and 1, so the explicit count and key
checks are unnecessary when isCallable()->maybe() is used as a guard.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1101adb commit 6d616b3
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
| 51 | + | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
0 commit comments