Skip to content

Commit

Permalink
fix(documentator): Requirements command output will include header.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Aug 28, 2023
1 parent c61e830 commit 92bdcd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
?>
# Requirements

| Requirement | Constraint | Supported by |
|--------------|---------------------|------------------|
@foreach ($packages as $key => $title)
Expand Down
2 changes: 2 additions & 0 deletions packages/documentator/src/Commands/Requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use function json_decode;
use function range;
use function reset;
use function trim;
use function uksort;
use function view;

Expand Down Expand Up @@ -100,6 +101,7 @@ public function __invoke(Git $git, Serializer $serializer): void {
'packages' => $packages,
'requirements' => $requirements,
])->render();
$output = trim($output);

$this->output->writeln($output);
}
Expand Down

0 comments on commit 92bdcd1

Please sign in to comment.