🌐 AI搜索 & 代理 主页
Skip to content

Commit e7ec787

Browse files
committed
[Config] Use the empty string instead of null as an array offset
1 parent 6c6d8ed commit e7ec787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,6 @@ private function getPrototypeChildren(PrototypedArrayNode $node): array
249249
}
250250
$keyNode->setInfo($info);
251251

252-
return [$key => $keyNode];
252+
return [$key ?? '' => $keyNode];
253253
}
254254
}

0 commit comments

Comments
 (0)