You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I thought I found some weird bug in PHP. Fortunately I rather quickly found out that it was timecop's fault. I guess we're not going to see it fixed soon :(
When creating a datetimeimmutable object with ! in the format (to zero the time). I get a DateTime object returned.
Test: echo get_class(\DateTimeImmutable::createFromFormat('!Y-m-d', '2017-10-03'));
expected: DateTimeImmutable
got: DateTime
The text was updated successfully, but these errors were encountered: