Skip to content

Wrong return type in ActionPendingChain::dispatch() #323

@leo-unglaub

Description

@leo-unglaub

Hey,
i am using the latest version of your software on the latest version of laravel and i noticed the following error message:

Lorisleiva\\Actions\\ActionPendingChain::dispatch(): Return value must be of type ?Illuminate\\Foundation\\Bus\\PendingDispatch, int returned

I am using pretty much exact the same code as you in your example:

$jobChain = [
    NotifyProductUpdatedAction::makeJob($productId)
];

FetchProductAction::withChain($jobChain)->dispatch($productId);

It still works as it should, the jobs get places into the queue before i get the exception. But i thought i would let you know. I hope its nothing that i did wrong.

Greetings
Leo

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