From f2548dc8f62b78ac337bfa208746c57c362efbed Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 23 May 2020 13:33:44 +0700 Subject: [PATCH] Add stability if not stable --- src/Package/Util/Dumper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Package/Util/Dumper.php b/src/Package/Util/Dumper.php index 557dbac0..8af2b900 100644 --- a/src/Package/Util/Dumper.php +++ b/src/Package/Util/Dumper.php @@ -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();