Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace lte,gte,addSecond deprecated function #1305

Closed
wants to merge 1 commit into from

Conversation

JHIH-LEI
Copy link

Error when running horizon:

lte deprecated:

local.ERROR: 2.5 lte() is deprecated. Use lessthanOrEquals() instead. {"exception":"[object] (ErrorException(code: 0): 2.5 lte() is deprecated. Use lessthanOrEquals() instead. at /Users/maomao/reservation-api/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php:199)
[stacktrace]
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(16384, '2.5 lte() is de...', '/Users/maomao/r...', 199, Array)
#1 /Users/maomao/reservation-api/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php(199): trigger_error('2.5 lte() is de...', 16384)
#2 /Users/maomao/reservation-api/vendor/laravel/horizon/src/Listeners/TrimFailedJobs.php(41): Cake\Chronos\Chronos->lte(Object(Cake\Chronos\Chronos))

gte deprecated:

local.ERROR: 2.5 gte() is deprecated. Use greaterThanOrEquals() instead. {"exception":"[object] (ErrorException(code: 0): 2.5 gte() is deprecated. Use greaterThanOrEquals() instead. at /Users/maomao/reservation-api/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php:149)
[stacktrace]
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(16384, '2.5 gte() is de...', '/Users/maomao/r...', 149, Array)
#1 /Users/maomao/reservation-api/vendor/cakephp/chronos/src/Traits/ComparisonTrait.php(149): trigger_error('2.5 gte() is de...', 16384)
#2 /Users/maomao/reservation-api/vendor/laravel/horizon/src/MasterSupervisor.php(182): Cake\Chronos\Chronos->gte(Object(Cake\Chronos\Chronos))

@taylorotwell
Copy link
Member

Can you update the tests too? Please mark as ready for review when done.

@taylorotwell taylorotwell marked this pull request as draft August 23, 2023 13:52
@driesvints
Copy link
Member

Thanks but v4 isn't supported anymore sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants