Repository navigation
Commit fbd1a8e
Date/Time: Pass the weekday number to WP_Locale::get_weekday() as an int in wp_date().
`DateTimeInterface::format( 'w' )` returns a string from `'0'` to `'6'`, which
worked only because the string was coerced to an integer array key. Casting it
to an int matches the `int<0, 6>` parameter type and removes the last
`get_weekday()` entry from the `argument.type` PHPStan baseline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 96af501 commit fbd1a8e
2 files changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | 906 | | |
912 | 907 | | |
913 | 908 | | |
| |||
0 commit comments