Skip to content

Commit

Permalink
Merge pull request #10 from drupal-composer/05-incorrect-core-version
Browse files Browse the repository at this point in the history
Use pretty version to avoid 4-digit version strings.
  • Loading branch information
jhedstrom authored Mar 1, 2018
2 parents fe4b89e + a62d8e6 commit 5474db5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DrupalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 5474db5

Please sign in to comment.