Skip to content

Commit 0868b67

Browse files
committed
bug #62267 [Config] Use the empty string instead of null as an array offset (santysisi)
This PR was merged into the 6.4 branch. Discussion ---------- [Config] Use the empty string instead of null as an array offset | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT For reference #61662 [Deprecation in CI](https://github.com/symfony/symfony/actions/runs/19001446632/job/54268718284?pr=62266#step:8:3293) <img width="854" height="312" alt="Screenshot from 2025-11-01 16-53-54" src="https://github.com/user-attachments/assets/946e5fa5-8300-40b3-b443-080119700e6f" /> Commits ------- e7ec787 [Config] Use the empty string instead of null as an array offset
2 parents 6c6d8ed + e7ec787 commit 0868b67

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)