diff options
author | Joas Schilling <coding@schilljs.com> | 2024-10-03 00:28:22 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-10-07 12:11:38 +0200 |
commit | 4219969c96f8dcbe734b22faf1a1b92f35c16028 (patch) | |
tree | cb307a4aa50ce97db0a0070d44da0285103fc6f8 /apps/files_external/lib/Command | |
parent | 4312473fbc1318e4a53dda7161fa85ee7aed9eed (diff) | |
download | nextcloud-server-4219969c96f8dcbe734b22faf1a1b92f35c16028.tar.gz nextcloud-server-4219969c96f8dcbe734b22faf1a1b92f35c16028.zip |
fix: Ensure we only pass string to writeln()
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_external/lib/Command')
-rw-r--r-- | apps/files_external/lib/Command/Config.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/Command/Option.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Command/Config.php b/apps/files_external/lib/Command/Config.php index f677e51d604..0736749f6d9 100644 --- a/apps/files_external/lib/Command/Config.php +++ b/apps/files_external/lib/Command/Config.php @@ -73,7 +73,7 @@ class Config extends Base { if (!is_string($value) && json_decode(json_encode($value)) === $value) { // show bools and objects correctly $value = json_encode($value); } - $output->writeln($value); + $output->writeln((string)$value); } /** diff --git a/apps/files_external/lib/Command/Option.php b/apps/files_external/lib/Command/Option.php index 6b679f1d6f7..6051c9c5fbd 100644 --- a/apps/files_external/lib/Command/Option.php +++ b/apps/files_external/lib/Command/Option.php @@ -38,7 +38,7 @@ class Option extends Config { if (!is_string($value)) { // show bools and objects correctly $value = json_encode($value); } - $output->writeln($value); + $output->writeln((string)$value); } /** |