aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-09 16:27:23 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-01-11 14:03:55 +0100
commitee0175e7d4c0422cbc1698390d94adb8d20da3fc (patch)
tree2344fcfd3114bbefd9d13b2a2b0b4db9d3d3b4b5
parenta78abd84ce7069b30f299abd83ca5d931496b8e8 (diff)
downloadnextcloud-server-ee0175e7d4c0422cbc1698390d94adb8d20da3fc.tar.gz
nextcloud-server-ee0175e7d4c0422cbc1698390d94adb8d20da3fc.zip
Fix psalm issue in SetupChecks command
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--core/Command/SetupChecks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/SetupChecks.php b/core/Command/SetupChecks.php
index 0940a139617..112bbfeb582 100644
--- a/core/Command/SetupChecks.php
+++ b/core/Command/SetupChecks.php
@@ -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(