Skip to content

Commit

Permalink
fix issue #17
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 7, 2024
1 parent c747352 commit 869b073
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changes/unreleased/Fixed-20241207-093508.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed
body: '[#17](https://github.com/llaville/box-manifest/issues/17) : Cannot build a PHAR distrib when banner is declared by an array of string'
time: 2024-12-07T09:35:08.759627867Z
7 changes: 6 additions & 1 deletion src/Helper/BoxConfigurationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use function dirname;
use function file_exists;
use function getcwd;
use function implode;
use function is_bool;
use function is_string;
use function realpath;
Expand Down Expand Up @@ -136,7 +137,11 @@ public function getAlias(): string

public function getBanner(): string
{
return $this->rawConfig->banner ?: '';
$banner = $this->rawConfig->banner ?: '';
if (is_string($banner)) {
return $banner;
}
return implode("\n", $banner);
}

public function getShebang(): string
Expand Down

0 comments on commit 869b073

Please sign in to comment.