From c5afb8f23abdf149dd1a52bf6a87bf99a26408cc Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 31 May 2015 13:45:38 -0700 Subject: [PATCH] Mark VersionParser::formatVersion() as deprecated With 1753c275ff, this will be handled nicely. --- src/Composer/Package/Version/VersionParser.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Composer/Package/Version/VersionParser.php b/src/Composer/Package/Version/VersionParser.php index ee49e81c8..dabf40a7b 100644 --- a/src/Composer/Package/Version/VersionParser.php +++ b/src/Composer/Package/Version/VersionParser.php @@ -69,8 +69,14 @@ class VersionParser return $stability === 'rc' ? 'RC' : $stability; } + /** + * @deprecated Use PackageInterface::getFullPrettyVersion instead + */ public static function formatVersion(PackageInterface $package, $truncate = true) { + trigger_error(__METHOD__.' is deprecated. Use '. + '\Composer\Package\PackageInterface::getFullPrettyVersion() instead', E_USER_DEPRECATED); + return $package->getFullPrettyVersion($truncate); }