Replies: 7 comments 1 reply
-
Fresh Laravel v11.3.1 Couldn't reproduce the error. |
Beta Was this translation helpful? Give feedback.
-
Same here, @sxtnmedia 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
Hey there, thanks for reporting this issue. We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I forgot to mention that this happened after an upgrade from Laravel 9 to 10 to 11. I will try to reproduce the issue in a separate repo. |
Beta Was this translation helpful? Give feedback.
-
Could not reproduce Error on Fresh Laravel |
Beta Was this translation helpful? Give feedback.
-
I have same issue in Laravel 11, php 8.3.4, carbon 3.2.4. |
Beta Was this translation helpful? Give feedback.
-
I've been having the same issue as well after upgrading from Laravel 10 to 11. @khamazaspyan, @sklr did you managed to solve this issue? UPDATE: in my case I can confirm that the exception is being thrown from Carbon/Traits/Units.php#L162 |
Beta Was this translation helpful? Give feedback.
-
Laravel Version
11.3.1
PHP Version
8.3.6
Database Driver & Version
No response
Description
When I run a queue with php artisan queue:work no error is displayed in CLI, but in storage/logs/laravel.log there is multiple:
I think this is due to Carbon using
declare(strict_types=1);
incarbon/src/Carbon/Traits/Units.php
. When$unit = "second"
, the $value is never cast/converted to float|int.Carbon version is 3.2.4
Steps To Reproduce
Just run a queue worker. No jobs are actually queued.
Beta Was this translation helpful? Give feedback.
All reactions