mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-08 16:15:03 +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\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
use Symfony\Component\Filesystem\Filesystem;
|
use Symfony\Component\Filesystem\Filesystem;
|
||||||
|
use Symfony\Component\Validator\ConstraintViolationInterface;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
use Twig\Environment;
|
use Twig\Environment;
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@ final class BuildConfigurationCommand extends Command
|
||||||
|
|
||||||
$io->listing(
|
$io->listing(
|
||||||
collect($violations)
|
collect($violations)
|
||||||
->map(fn(ConstraintViolation $v) => "{$v->getInvalidValue()} - {$v->getMessage()}")
|
->map(fn (ConstraintViolationInterface $v) => "{$v->getInvalidValue()} - {$v->getMessage()}")
|
||||||
->toArray()
|
->toArray()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -8,5 +8,8 @@ use Symfony\Component\Validator\ConstraintViolationListInterface;
|
||||||
|
|
||||||
interface ValidatorInterface
|
interface ValidatorInterface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @param array<string,mixed> $configurationData
|
||||||
|
*/
|
||||||
public function validate(array $configurationData): ConstraintViolationListInterface;
|
public function validate(array $configurationData): ConstraintViolationListInterface;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue