Skip to content

Commit e54f4b0

Browse files
committed
fix: remove new line char for package info when pack phar
1 parent cd91b0f commit e54f4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/PharCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ private function collectInformation()
661661
$this->version = trim($ret);
662662
} else {
663663
list($code, $ret,) = ProcessUtil::run('git branch', $basePath);
664-
$this->branchAliasVersion = $code === 0 ? trim($ret, '* '): 'UNKNOWN';
664+
$this->branchAliasVersion = $code === 0 ? trim($ret, "* \n"): 'UNKNOWN';
665665
}
666666
}
667667

0 commit comments

Comments
 (0)