diff --git a/Neos.Flow/Classes/Command/ConfigurationCommandController.php b/Neos.Flow/Classes/Command/ConfigurationCommandController.php
index eff6eb51e9..bae65afd2d 100644
--- a/Neos.Flow/Classes/Command/ConfigurationCommandController.php
+++ b/Neos.Flow/Classes/Command/ConfigurationCommandController.php
@@ -78,7 +78,7 @@ public function showCommand(string $type = 'Settings', string $path = '', int $d
$this->outputLine('Configuration "%s" was empty!', [$typeAndPath]);
return;
}
- $configuration = self::truncateArrayAtDepth($configuration, $depth);
+ $configuration = is_array($configuration) ? self::truncateArrayAtDepth($configuration, $depth) : $configuration;
$yaml = Yaml::dump($configuration, 99);
$this->outputLine('Configuration "%s":', [$typeAndPath]);
$this->outputLine();