Skip to content

Commit

Permalink
no newline at end of decorated text builder
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Aug 24, 2024
1 parent 6fe1b53 commit f6507c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Composer/Manifest/DecorateTextManifestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use function implode;
use function phpversion;
use function rtrim;
use function sprintf;
use function substr;
use const PHP_EOL;
Expand Down Expand Up @@ -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);
}
}

0 comments on commit f6507c6

Please sign in to comment.