Skip to content

Commit a70858b

Browse files
Oleksandr Gorkuncpartica
authored andcommitted
MAGETWO-95880: Fail to install Magento 2.3.0 on cloud
1 parent afd7793 commit a70858b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Config/App/Config/Type/System.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public function get($path = '')
140140
*/
141141
private function mergeData(array $newData): void
142142
{
143-
return $this->data = array_merge_recursive($this->data, $newData);
143+
$this->data = array_replace_recursive($this->data, $newData);
144+
return;
144145
if (array_key_exists(ScopeInterface::SCOPE_DEFAULT, $newData)) {
145146
//Sometimes new data may contain links to arrays and we don't want that.
146147
$this->data[ScopeInterface::SCOPE_DEFAULT] = (array)$newData[ScopeInterface::SCOPE_DEFAULT];

0 commit comments

Comments
 (0)