Skip to content

Commit

Permalink
Fix version detection for phar releases
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed May 12, 2018
1 parent 1115e01 commit aa85df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function getVersion()

// From a phar release.
if (!strncmp('phar://', __FILE__, 7)) {
$phar = new \Phar(__FILE__);
$phar = new \Phar(dirname(__DIR__));
$md = $phar->getMetadata();
$version = $md['version'];
} else {
Expand Down

0 comments on commit aa85df9

Please sign in to comment.