Skip to content

Commit c560c77

Browse files
committed
AC-11661:: The console command php bin magento config show --scope=store --scope-code=store view code does not work if the configuration for this scope is not exist
1 parent d606831 commit c560c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Config/Console/Command/ConfigShowCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private function outputResult(OutputInterface $output, $configValue, $configPath
238238
{
239239
if (!is_array($configValue)) {
240240
$value = $this->valueProcessor->process($this->scope, $this->scopeCode, $configValue, $configPath);
241-
$output->writeln($this->inputPath === $configPath ? $value : sprintf("%s - %s", $configPath, $value));
241+
$output->writeln($this->inputPath === $configPath ? [$value] : sprintf("%s - %s", $configPath, $value));
242242
} elseif (is_array($configValue)) {
243243
foreach ($configValue as $name => $value) {
244244
$childPath = empty($configPath) ? $name : ($configPath . '/' . $name);

0 commit comments

Comments
 (0)