InvalidNamedArgument
A named argument does not correspond to any parameter of the callable.
Example
Section titled “Example”<?phpfunction connect(string $host, int $port): void {}
connect(host: 'localhost', timeout: 30); // no parameter named 'timeout'How to fix
Section titled “How to fix”Use the correct parameter name or switch to a positional argument.