Hi

I use the https://github.com/lorisleiva/laravel-actions package

When I call a action with named parameters phptool issue a 'unknown named parameter'.
Technically it might be correct, but phpstom makes it work.

class CreateDOCXStructureFromUserDoc
{
    use AsAction;

    public function handle(UserDoc $userDoc, array $data = null, string $templateFilename = null, string $documentFilename = null): ?DOCXStructure
    {
    ....
    }
}

called like this:

            CreateDOCXStructureFromUserDoc::run(
                userDoc: $record,
                templateFilename: $templateFilename,
                documentFilename: $documentFilename
            );

    rabol Thank you,

    We should not report named arguments for varargs (...), will be fixed!

      pre-release 1.39.13959 fixes that, thanks!

        Write a Reply...