We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b525a commit 5b666fdCopy full SHA for 5b666fd
app/code/Magento/Config/Model/Config/Structure/Element/Iterator.php
@@ -60,7 +60,13 @@ public function setElements(array $elements, $scope)
60
$this->_scope = $scope;
61
if (count($elements)) {
62
$lastElement = end($elements);
63
- $this->_lastId = $lastElement['id'];
+ if (isset($lastElement['id'])) {
64
+ $this->_lastId = $lastElement['id'];
65
+ } else {
66
+ throw new \InvalidArgumentException(
67
+ 'Missing id key in config structure element. LastElement: ' . json_encode($lastElement)
68
+ );
69
+ }
70
}
71
72
0 commit comments