Skip to content

Commit

Permalink
[Config][XmlReferenceDumper] Prevent potential \TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Feb 3, 2020
1 parent 435f4d5 commit e8ba15e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ private function writeNode(NodeInterface $node, int $depth = 0, bool $root = fal
}

if ($prototype instanceof PrototypedArrayNode) {
$prototype->setName($key);
$prototype->setName($key ?? '');
$children = [$key => $prototype];
} elseif ($prototype instanceof ArrayNode) {
$children = $prototype->getChildren();
Expand Down

0 comments on commit e8ba15e

Please sign in to comment.