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 Jan 31, 2020
1 parent ec587f4 commit 998b53e
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 998b53e

Please sign in to comment.