Skip to content

Commit

Permalink
fix issue #168
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 23, 2022
1 parent 257b0bf commit b4e57c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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];
}

Expand Down

0 comments on commit b4e57c2

Please sign in to comment.