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; } }