cakephp / chronos

A standalone DateTime library originally based off of Carbon
http://book.cakephp.org/chronos
MIT License
1.36k stars 63 forks source link

2.4.x: addSecond() is deprecated. Use addSeconds() #437

Closed SaeedSalem closed 1 year ago

SaeedSalem commented 1 year ago

I get this error:

Since 2.4 - addSecond() is deprecated. Use addSeconds() instead. at /var/www/vendor/cakephp/chronos/src/Traits/ModifierTrait.php:863

othercorey commented 1 year ago

You need to change your code to call addSeconds(value)

SaeedSalem commented 1 year ago

I'm sorry, the error was in laravel/horizon package. They are using addSecond().

dereuromark commented 1 year ago

You can always silence deprecations. They are not "hard errors", but information on how to improve code for future compatibility.