Skip to content

TooFewArguments

A call provides fewer arguments than the function requires.

<?php
function add(int $a, int $b): int { return $a + $b; }
add(1); // missing second argument

Provide all required arguments, or make the missing parameter optional.