chore: fix PHPStan errors

This commit is contained in:
Oliver Davies 2023-03-08 21:21:12 +00:00
parent 0fcffc5d2f
commit 78411c319c
2 changed files with 5 additions and 1 deletions

View file

@ -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()
);

View file

@ -8,5 +8,8 @@ use Symfony\Component\Validator\ConstraintViolationListInterface;
interface ValidatorInterface
{
/**
* @param array<string,mixed> $configurationData
*/
public function validate(array $configurationData): ConstraintViolationListInterface;
}