8000 [Config][XmlReferenceDumper] Prevent potential \TypeError · symfony/symfony@e8ba15e · GitHub
[go: up one dir, main page]

Skip to content

Commit e8ba15e

Browse files
committed
[Config][XmlReferenceDumper] Prevent potential \TypeError
1 parent 435f4d5 commit e8ba15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Definition/Dumper/XmlReferenceDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private function writeNode(NodeInterface $node, int $depth = 0, bool $root = fal
9191
}
9292

9393
if ($prototype instanceof PrototypedArrayNode) {
94-
$prototype->setName($key);
94+
$prototype->setName($key ?? '');
9595
$children = [$key => $prototype];
9696
} elseif ($prototype instanceof ArrayNode) {
9797
$children = $prototype->getChildren();

0 commit comments

Comments
 (0)
0