8000 minor #57603 [Translation] fix TranslationLintCommand test (xabbuh) · symfony/symfony@0f4cf9b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f4cf9b

Browse files
committed
minor #57603 [Translation] fix TranslationLintCommand test (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [Translation] fix TranslationLintCommand test | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 3eabff5 fix TranslationLintCommand test
2 parents 0fde17e + 3eabff5 commit 0f4cf9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Translation/Tests/Command/TranslationLintCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ private function createCommand(Translator $translator, array $enabledLocales): C
148148
*/
149149
private function getNormalizedDisplay(CommandTester $commandTester): string
150150
{
151-
return implode(\PHP_EOL, array_map(fn (string $line) => rtrim($line), explode(\PHP_EOL, $commandTester->getDisplay(true))));
151+
return implode("\n", array_map(rtrim(...), explode("\n", $commandTester->getDisplay(true))));
152152
}
153153
}

0 commit comments

Comments
 (0)
0