8000 minor #9756 [Config] Removed duplicated condition (gnugat) · sroze/symfony@aff0594 · GitHub
[go: up one dir, main page]

Skip to content

Commit aff0594

Browse files
committed
minor symfony#9756 [Config] Removed duplicated condition (gnugat)
This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes symfony#9756). Discussion ---------- [Config] Removed duplicated condition | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | none Removed unnecessary condition (looks like it's been copy/pasted from line 84). Commits ------- 5c9dd30 [Config] Removed duplicated condition
2 parents b3afa8d + e1fe327 commit aff0594

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
@@ -97,7 +97,7 @@ private function writeNode(NodeInterface $node, $depth = 0)
9797
$default = $node->getDefaultValue();
9898

9999
if (is_array($default)) {
100-
if ($node->hasDefaultValue() && count($defaultArray = $node->getDefaultValue())) {
100+
if (count($defaultArray = $node->getDefaultValue())) {
101101
$default = '';
102102
} elseif (!is_array($example)) {
103103
$default = '[]';

0 commit comments

Comments
 (0)
0