From c7dd08c5b245529fd9d03608ecc04ca3f8f01a79 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sun, 19 Oct 2025 15:47:04 +0200 Subject: [PATCH] BUGFIX: `configuration:show` with non array value crashing when accessed via `--path` a bool for example ``` flow configuration:show --path Neos.Neos.Ui.frontendDevelopmentMode ``` should output `true` but > Neos\Flow\Command\ConfigurationCommandController_Original::truncateArrayAtDepth(): Argument #1 ($array) must be of type array, true given --- Neos.Flow/Classes/Command/ConfigurationCommandController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();