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.
2 parents 8b16cd5 + 738fa97 commit f047d7dCopy full SHA for f047d7d
lib/internal/Magento/Framework/Xml/Parser.php
@@ -111,7 +111,10 @@ protected function _xmlToArray($currentNode = false)
111
$value = ['_value' => $value, '_attribute' => $attributes];
112
}
113
if (isset($content[$node->nodeName])) {
114
- if (!isset($content[$node->nodeName][0]) || !is_array($content[$node->nodeName][0])) {
+ if (
115
+ (is_string($content[$node->nodeName]) || !isset($content[$node->nodeName][0]))
116
+ || (is_array($value) && !is_array($content[$node->nodeName][0]))
117
+ ) {
118
$oldValue = $content[$node->nodeName];
119
$content[$node->nodeName] = [];
120
$content[$node->nodeName][] = $oldValue;
0 commit comments