src/Validation/Spec/AbstractValidator.php
protected function memberFieldsNotAllowed(string $path, string $member, iterable $fields): void
    {
        foreach ($fields as $field) {
            $this->errors->add($this->translator->memberFieldNotAllowed($path, $member, $field));
        }
    }
protected function memberFieldsNotAllowed(string $path, string $member, iterable $fields): void
    {
        foreach ($fields as $field) {
            $this->errors->add($this->translator->memberFieldNotAllowed($path, $member, $field));
        }
    }
Add errors for when a member has a field that is not allowed.

@param string $path
@param string $member
@param iterable $fields