From f92dbe62e74cba65de181e6abe3bca248005023d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 3 Oct 2024 00:16:13 +0200 Subject: [PATCH] fix(command): Ensure that writeln() argument is string Signed-off-by: Joas Schilling --- lib/Command/ExAppConfig/GetConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Command/ExAppConfig/GetConfig.php b/lib/Command/ExAppConfig/GetConfig.php index d0218270..cea540d4 100644 --- a/lib/Command/ExAppConfig/GetConfig.php +++ b/lib/Command/ExAppConfig/GetConfig.php @@ -49,7 +49,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $defaultValue = $input->getOption('default-value'); if ($exAppConfig === null) { if (isset($defaultValue)) { - $output->writeln($defaultValue); + $output->writeln((string)$defaultValue); return 0; } $output->writeln(sprintf('ExApp %s config %s not found', $appId, $configKey)); @@ -58,7 +58,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $value = $exAppConfig->getConfigvalue() ?? $defaultValue; - $output->writeln($value); + $output->writeln((string)$value); return 0; } }