Skip to content

TooManyArguments

A call provides more arguments than the function accepts.

<?php
function greet(string $name): string { return "Hello, $name"; }
greet('Alice', 'extra'); // only one parameter accepted

Remove the extra arguments or add more parameters to the function.