Commit 070233c
Fix StringProcessor and HttpCode bugs exposed by tests
StringProcessor:
- fuzzyMatch: use lambda in preg_replace_callback instead of passing
'preg_quote' directly, which broke in PHP 8 strict typing
- sanitizeForUrl: replace array_walk/trim with lambda to avoid passing
a third argument that trim does not accept
HttpCode:
- codeFromString: include underscore in allowed character class so that
inputs like 'NOT_FOUND' and 'ACCESS_DENIED' are handled correctly,
consistent with space-separated equivalents
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2d085f3 commit 070233c
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments