diff --git a/core/Command/SetupChecks.php b/core/Command/SetupChecks.php index d43b5a075926d..f31acba63e3f1 100644 --- a/core/Command/SetupChecks.php +++ b/core/Command/SetupChecks.php @@ -66,12 +66,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int 'error' => '❌', default => 'ℹ', }; + $verbosity = ($check->getSeverity() === 'error' ? OutputInterface::VERBOSITY_QUIET : OutputInterface::VERBOSITY_NORMAL); + $description = $check->getDescription(); $output->writeln( "\t\t<{$styleTag}>". "{$emoji} ". $title. - ($check->getDescription() !== null ? ': '.$check->getDescription() : ''). - "" + ($description !== null ? ': '.$description : ''). + "", + $verbosity ); } } @@ -79,10 +82,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int foreach ($results as $category => $checks) { foreach ($checks as $title => $check) { if ($check->getSeverity() !== 'success') { - return 1; + return self::FAILURE; } } } - return 0; + return self::SUCCESS; } }