[Config][XmlReferenceDumper] Prevent potential \TypeError
This commit is contained in:
parent
435f4d5403
commit
e8ba15ed27
@ -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();
|
||||
|
Reference in New Issue
Block a user