spatie / laravel-short-schedule

Schedule artisan commands to run at a sub-minute frequency
https://freek.dev/1683-a-package-to-schedule-artisan-commands-at-sub-minute-frequencies
MIT License
611 stars 52 forks source link

Deprecation warning (Carbon) #76

Closed maciek-szn closed 1 year ago

maciek-szn commented 1 year ago

Running short-schedule:run in the latest version (1.5.1) gives a following warning:

Since 2.61.0, it's deprecated to compare a date to null, meaning of such comparison is ambiguous and will no longer be possible in 3.0.0, you should explicitly pass 'now' or make an other check to eliminate null values. in [...]\vendor\nesbot\carbon\src\Carbon\Traits\Comparison.php on line 1115

freekmurze commented 1 year ago

Could you post the entire stacktrace? Or, even better, submit a PR that fixes this?

maciek-szn commented 1 year ago

I'm closing this as it seems that the issue is in Laravel itself. Sorry for bothering you.