mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 05:47:32 +00:00
chore: fix PHPStan errors
This commit is contained in:
parent
0fcffc5d2f
commit
78411c319c
|
@ -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()
|
||||
);
|
||||
|
||||
|
|
|
@ -8,5 +8,8 @@ use Symfony\Component\Validator\ConstraintViolationListInterface;
|
|||
|
||||
interface ValidatorInterface
|
||||
{
|
||||
/**
|
||||
* @param array<string,mixed> $configurationData
|
||||
*/
|
||||
public function validate(array $configurationData): ConstraintViolationListInterface;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue