cakephp / chronos

A standalone DateTime library originally based off of Carbon

Home Page:http://book.cakephp.org/chronos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

SaeedSalem opened this issue · comments

I get this error:

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

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

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

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