Skip to content

Commit c2ea18d

Browse files
MAGECLOUD-2173: The "recursion detected" error during a deployment (#345)
1 parent 8bb91a5 commit c2ea18d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

patches.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@
124124
},
125125
"Zendframework1 should use TLS 1.2": {
126126
">=2.1.4 <2.3": "MAGECLOUD-2521__zendframework1_use_TLS_1.2.patch"
127+
},
128+
"The recursion detected error during deployment": {
129+
"2.2.0 - 2.2.6": "MAGECLOUD-2173__the_recursion_error_during_deployment__2.2.0.patch"
127130
}
128131
}
129132
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff -Nuar a/vendor/magento/module-config/App/Config/Type/System.php b/vendor/magento/module-config/App/Config/Type/System.php
2+
--- a/vendor/magento/module-config/App/Config/Type/System.php
3+
+++ b/vendor/magento/module-config/App/Config/Type/System.php
4+
@@ -155,7 +155,11 @@ class System implements ConfigTypeInterface
5+
}
6+
$scopeId = array_shift($pathParts);
7+
if (!isset($this->data[$scopeType][$scopeId])) {
8+
- $this->data = array_replace_recursive($this->loadScopeData($scopeType, $scopeId), $this->data);
9+
+ $scopeData = $this->loadScopeData($scopeType, $scopeId);
10+
+ /* Starting from 2.2.0 $this->data can be already loaded with $this->loadScopeData */
11+
+ if (!isset($this->data[$scopeType][$scopeId])) {
12+
+ $this->data = array_replace_recursive($scopeData, $this->data);
13+
+ }
14+
}
15+
return isset($this->data[$scopeType][$scopeId])
16+
? $this->getDataByPathParts($this->data[$scopeType][$scopeId], $pathParts)

0 commit comments

Comments
 (0)