Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / config / Definition / Dumper / XmlReferenceDumper.php
index 2cc71b344e35f3dd8f3912d46dcc4b6cd468dce5..ec5460f2f53c7f286ec96b118ca6313abe430def 100644 (file)
@@ -96,7 +96,10 @@ class XmlReferenceDumper
                     $rootAttributes[$key] = str_replace('-', ' ', $rootName).' '.$key;
                 }
 
-                if ($prototype instanceof ArrayNode) {
+                if ($prototype instanceof PrototypedArrayNode) {
+                    $prototype->setName($key);
+                    $children = array($key => $prototype);
+                } elseif ($prototype instanceof ArrayNode) {
                     $children = $prototype->getChildren();
                 } else {
                     if ($prototype->hasDefaultValue()) {