protected function saveError(ContainerInterface $container, ValidatorReflectionInterface $validator, $name, $index) { $error = $container->getMessageProvider()->get($validator->type(), $validator->params()); $container->getReport()->addError($name, $error, $index); }