Skip to content

Commit 599ce2b

Browse files
MacMac
authored andcommitted
Merge remote-tracking branch 'remotes/github/MAGETWO-96428' into EPAM-PR-28
2 parents e157797 + 31d1949 commit 599ce2b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/internal/Magento/Framework/App/DeploymentConfig.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public function get($key = null, $defaultValue = null)
7070
if ($key === null) {
7171
return $this->flatData;
7272
}
73+
74+
if (array_key_exists($key, $this->flatData) && $this->flatData[$key] === null) {
75+
return '';
76+
}
77+
7378
return $this->flatData[$key] ?? $defaultValue;
7479
}
7580

@@ -146,6 +151,8 @@ private function load()
146151
}
147152

148153
/**
154+
* Array keys conversion
155+
*
149156
* Convert associative array of arbitrary depth to a flat associative array with concatenated key path as keys
150157
* each level of array is accessible by path key
151158
*

0 commit comments

Comments
 (0)