diff --git a/src/Console/Command/BuildConfigurationCommand.php b/src/Console/Command/BuildConfigurationCommand.php index 4d83e9b..a2d5181 100644 --- a/src/Console/Command/BuildConfigurationCommand.php +++ b/src/Console/Command/BuildConfigurationCommand.php @@ -16,6 +16,7 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Filesystem\Filesystem; +use Symfony\Component\Validator\ConstraintViolationInterface; use Symfony\Component\Yaml\Yaml; use Twig\Environment; @@ -63,7 +64,7 @@ final class BuildConfigurationCommand extends Command $io->listing( collect($violations) - ->map(fn(ConstraintViolation $v) => "{$v->getInvalidValue()} - {$v->getMessage()}") + ->map(fn (ConstraintViolationInterface $v) => "{$v->getInvalidValue()} - {$v->getMessage()}") ->toArray() ); diff --git a/src/Validator/ValidatorInterface.php b/src/Validator/ValidatorInterface.php index 68b8033..b3bf2f0 100644 --- a/src/Validator/ValidatorInterface.php +++ b/src/Validator/ValidatorInterface.php @@ -8,5 +8,8 @@ use Symfony\Component\Validator\ConstraintViolationListInterface; interface ValidatorInterface { + /** + * @param array $configurationData + */ public function validate(array $configurationData): ConstraintViolationListInterface; }