From 20af5a9cbd21b55cb432110ef2a44db0b5156b44 Mon Sep 17 00:00:00 2001 From: "keyur.a.shah@accenture.com" Date: Sun, 9 Sep 2018 14:13:21 +0200 Subject: [PATCH] fix #17582 ./bin/magento config:show fails with a fatal error --- .../Config/Console/Command/ConfigShow/ValueProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Config/Console/Command/ConfigShow/ValueProcessor.php b/app/code/Magento/Config/Console/Command/ConfigShow/ValueProcessor.php index 582f87508089f..aeb57010e4969 100644 --- a/app/code/Magento/Config/Console/Command/ConfigShow/ValueProcessor.php +++ b/app/code/Magento/Config/Console/Command/ConfigShow/ValueProcessor.php @@ -97,7 +97,7 @@ public function process($scope, $scopeCode, $value, $path) $field = $configStructure->getElementByConfigPath($path); /** @var Value $backendModel */ - $backendModel = $field && $field->hasBackendModel() + $backendModel = $field instanceof Field && $field->hasBackendModel() ? $field->getBackendModel() : $this->configValueFactory->create();