Repository navigation
|
Hi, Is there a sniff that could detect, for PHP8.2, a correction that has been made in PHP strtotime that used to accept (wrongly as I've been told) the format date('Y-m-d',strtotime('2022-06-02 +-1 day')) which would give give 2022-06-01 in versions prior to 8.2, but in 8.2 gives 2022-06-03 (caught me out in some loops, the fix is to remove the + entirely as it's optional). Many thanks |
Answered by
jrfnl
Dec 21, 2022
Replies: 3 comments
|
@aquavark As far as I know, no sniff exists for this (yet), but this would definitely be something of interest to add to the PHPCompatibility standard. You may want to open an issue about it there, preferably with a link to the specs of exactly what has changed. |
0 replies
Answer selected by
aquavark
|
Thanks, will do! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@aquavark As far as I know, no sniff exists for this (yet), but this would definitely be something of interest to add to the PHPCompatibility standard. You may want to open an issue about it there, preferably with a link to the specs of exactly what has changed.