Skip to content

Commit df5ec36

Browse files
Fix magento#17582 /bin/magento config:show fails with a fatal error
1 parent fbb7fad commit df5ec36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Config/Console/Command/ConfigShow/ValueProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function process($scope, $scopeCode, $value, $path)
9797
$field = $configStructure->getElementByConfigPath($path);
9898

9999
/** @var Value $backendModel */
100-
$backendModel = $field && $field->hasBackendModel()
100+
$backendModel = $field && ($field instanceof Field) && $field->hasBackendModel()
101101
? $field->getBackendModel()
102102
: $this->configValueFactory->create();
103103

0 commit comments

Comments
 (0)