From a62d8e6a0b39292ad0fc8f04bff8054eedc3e225 Mon Sep 17 00:00:00 2001 From: Jonathan Hedstrom Date: Thu, 1 Mar 2018 11:25:58 -0800 Subject: [PATCH] Use pretty version to avoid 4-digit version strings. - Fixes #05 --- src/DrupalInfo.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DrupalInfo.php b/src/DrupalInfo.php index 3e0b7b5..e5758f9 100644 --- a/src/DrupalInfo.php +++ b/src/DrupalInfo.php @@ -166,8 +166,9 @@ protected function findVersion(PackageInterface $package) return $extra['drupal']['version']; } - // Default to package version. - return $package->getVersion(); + // Default to package pretty version. + // The normal version has 4 digits for some reason. + return $package->getPrettyVersion(); } /**