Skip to content

CarbonImmutable breaks artisan operations:show #46

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

Open
tecbeast42 opened this issue Apr 30, 2025 · 0 comments
Open

CarbonImmutable breaks artisan operations:show #46

tecbeast42 opened this issue Apr 30, 2025 · 0 comments

Comments

@tecbeast42
Copy link

When you have an operation that already ran, and it has an entry in the operations table I get the following error when executing php artisan operations:show

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

This happens because of

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     */
    public function boot(): void
    {
        Date::use(CarbonImmutable::class);
    }
}
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