Commit c86fd8e
committed
Tighten match type to drop (string) casts
PatternIterator declared its yielded match as array<mixed>, but
preg_match results (no PREG_OFFSET_CAPTURE / PREG_UNMATCHED_AS_NULL)
are always string-valued. Declaring array<array-key, string> reflects
that guarantee and lets buildQuery() return/concatenate the match
values directly, removing the (string) casts.
Co-Authored-By: Claude Code1 parent 7c99c33 commit c86fd8e
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | | - | |
| 77 | + | |
80 | 78 | | |
81 | 79 | | |
82 | | - | |
| 80 | + | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments