Skip to content

CarbonImmutable breaks artisan operations:show #46

@tecbeast42

Description

@tecbeast42

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);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions