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
I just updated my installation of Chronos to the latest available version for the project (PHP 7.3, so best I get is 2.4.4), and I got this nonsensical error: (new Date($anyDateHere))->addWeeks(1)->startOfWeek()
throws 2.5 startOfDay() will be removed in 3.x.
But this method calls startOfDay() implicitly, under the hood, users can't NOT call it.
The text was updated successfully, but these errors were encountered:
jurchiks
changed the title
Invalid deprecation error for Date
Invalid deprecation error for Date::startOfWeek()
Jun 13, 2024
Fix deprecations for startOfDay/endOfDay being called by
startOfWeek/endOfWeek. Because dates don't have times we don't need to
modify any time related components and can just return early.
Fixes#453
I just updated my installation of Chronos to the latest available version for the project (PHP 7.3, so best I get is 2.4.4), and I got this nonsensical error:
(new Date($anyDateHere))->addWeeks(1)->startOfWeek()
throws
2.5 startOfDay() will be removed in 3.x.
But this method calls
startOfDay()
implicitly, under the hood, users can't NOT call it.The text was updated successfully, but these errors were encountered: