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

OperationsLineElement type error #38

Open
mattfrazee opened this issue Jul 26, 2024 · 0 comments
Open

OperationsLineElement type error #38

mattfrazee opened this issue Jul 26, 2024 · 0 comments

Comments

@mattfrazee
Copy link

I came across a type error issue that may have been triggered from an updated Laravel version.

php artisan operations:show

ERROR  TimoKoerber\LaravelOneTimeOperations\Commands\Utils\OperationsLineElement::make(): Argument #3 ($processedAt) must be of type ?Illuminate\Support\Carbon, Carbon\CarbonImmutable given, called in vendor/timokoerber/laravel-one-time-operations/src/Commands/OneTimeOperationShowCommand.php on line 95.

I was able to get this error to go away and show/process operations by updating the OperationsLineElement.php file and changing this:

use Illuminate\Support\Carbon;

To this:

use Carbon\CarbonImmutable as Carbon;

Please consider this (or similar) update. Thank you!

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

No branches or pull requests

1 participant