Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Commit 39aee50

Browse files
Fixed dumping yaml translations with dry set to false
1 parent 56fce5b commit 39aee50

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Dumpers/YamlFileDumper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ public function format(array $translations, array $arguments = []) : string
2020
[$anchors, $merges] = $this->getAnchorsAndMerges($arrs, $hashes);
2121

2222
$output .= $this->formatTranslations($translations, $anchors, $merges, $hashes);
23+
24+
return $this->reAnchor($output, array_keys($anchors));
2325
} else {
2426
$output .= $this->formatTranslations($translations);
25-
}
2627

27-
return $this->reAnchor($output, array_keys($anchors));
28+
return $output;
29+
}
2830
}
2931

3032
/**

0 commit comments

Comments
 (0)