Fix psalm issue in SetupChecks command

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/42804/head
Côme Chilliet 2024-01-09 16:27:23 +07:00 committed by John Molakvoæ
parent 0b58618712
commit c335d369e1
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 1 additions and 1 deletions

@ -95,7 +95,7 @@ class SetupChecks extends Base {
$verbosity = ($check->getSeverity() === 'error' ? OutputInterface::VERBOSITY_QUIET : OutputInterface::VERBOSITY_NORMAL);
$description = $check->getDescription();
$descriptionParameters = $check->getDescriptionParameters();
if ($descriptionParameters !== null) {
if ($description !== null && $descriptionParameters !== null) {
$description = $this->richToParsed($description, $descriptionParameters);
}
$output->writeln(