Skip to content

Commit

Permalink
Add stability if not stable
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejoye committed May 23, 2020
1 parent 1bcdcc1 commit f2548dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Package/Util/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public function dump(Interfaces\Package $package, $with_version = true)

if ($with_version) {
$data['version'] = $package->getPrettyVersion();
$stability = $package->getStability();

if ('stable' !== $stability) {
$data['version'] .= '-' . $stability;
}
}

$data['type'] = $package->getType();
Expand Down

0 comments on commit f2548dc

Please sign in to comment.