From b4e57c2546c6106d515968f99647273074ae503b Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Fri, 23 Dec 2022 08:29:58 +0000 Subject: [PATCH] fix issue #168 --- src/Command/LintCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Command/LintCommand.php b/src/Command/LintCommand.php index ce7e36bd..48599fe8 100644 --- a/src/Command/LintCommand.php +++ b/src/Command/LintCommand.php @@ -18,6 +18,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Terminal; use Symfony\Component\Finder\SplFileInfo; +use Symfony\Component\Yaml\Exception\ParseException; class LintCommand extends Command { @@ -365,7 +366,7 @@ protected function mergeOptions(): array $options = $configResolver->resolve(); $failures = $configResolver->getNestedExceptions(); - if (!empty($failures)) { + if (!empty($failures) && !$failures[0] instanceof ParseException) { throw $failures[0]; }