[Config][XmlReferenceDumper] Prevent potential \TypeError

This commit is contained in:
Thomas Calvet 2020-01-31 12:46:11 +01:00
parent 435f4d5403
commit e8ba15ed27

View File

@ -91,7 +91,7 @@ class XmlReferenceDumper
}
if ($prototype instanceof PrototypedArrayNode) {
$prototype->setName($key);
$prototype->setName($key ?? '');
$children = [$key => $prototype];
} elseif ($prototype instanceof ArrayNode) {
$children = $prototype->getChildren();