]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Ensure we only pass string to writeln()
authorJoas Schilling <coding@schilljs.com>
Wed, 2 Oct 2024 22:28:22 +0000 (00:28 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 7 Oct 2024 10:11:38 +0000 (12:11 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files_external/lib/Command/Config.php
apps/files_external/lib/Command/Option.php

index f677e51d60435fb1276d8b967c888723e16f9fe0..0736749f6d9812c787474f036165f7d8b7729cd0 100644 (file)
@@ -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);
        }
 
        /**
index 6b679f1d6f7ba042427424906c26863a93138972..6051c9c5fbdc54a209c5d9ff8621349eba1ca94d 100644 (file)
@@ -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);
        }
 
        /**