From f6507c64fc67a25e77fcddc9ddb9dc431db05f9a Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Sat, 24 Aug 2024 16:08:10 +0000 Subject: [PATCH] no newline at end of decorated text builder --- src/Composer/Manifest/DecorateTextManifestBuilder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Manifest/DecorateTextManifestBuilder.php b/src/Composer/Manifest/DecorateTextManifestBuilder.php index 517d5b6..4f0650e 100644 --- a/src/Composer/Manifest/DecorateTextManifestBuilder.php +++ b/src/Composer/Manifest/DecorateTextManifestBuilder.php @@ -11,6 +11,7 @@ use function implode; use function phpversion; +use function rtrim; use function sprintf; use function substr; use const PHP_EOL; @@ -87,6 +88,6 @@ public function __invoke(array $content): string } // otherwise, it's a virtual package } - return implode(PHP_EOL, $entries); + return rtrim(implode(PHP_EOL, $entries), PHP_EOL); } }