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.
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()
throws2.5 startOfDay() will be removed in 3.x.
But this method callsstartOfDay()
implicitly, under the hood, users can't NOT call it.