Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 998b53e

Browse filesBrowse files
committed
[Config][XmlReferenceDumper] Prevent potential \TypeError
1 parent ec587f4 commit 998b53e
Copy full SHA for 998b53e

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Definition/Dumper/XmlReferenceDumper.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.