Skip to content

OperationsLineElement type error #38

@mattfrazee

Description

@mattfrazee

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!

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