src/Validation/Rules.php
private function requireParameterCount(int $count, array $parameters, string $rule): void
    {
        if (count($parameters) < $count) {
            throw new InvalidArgumentException("Validation rule {$rule} requires at least {$count} parameters.");
        }
    }
private function requireParameterCount(int $count, array $parameters, string $rule): void
    {
        if (count($parameters) < $count) {
            throw new InvalidArgumentException("Validation rule {$rule} requires at least {$count} parameters.");
        }
    }
private function requireParameterCount ( int $ count , array $ parameters , string $ rule ) : void { if ( count ( $ parameters ) < $ count ) { throw new InvalidArgumentException ( "Validation rule {$rule} requires at least {$count} parameters." ) ; } }
Require a certain number of parameters to be present.

@throws InvalidArgumentException
Require a certain number of parameters to be present .