1
0
Fork 0

Mark VersionParser::formatVersion() as deprecated

With 1753c275ff, this will be handled nicely.
pull/4086/head
Kunal Mehta 2015-05-31 13:45:38 -07:00
parent f634c6946d
commit c5afb8f23a
1 changed files with 6 additions and 0 deletions

View File

@ -69,8 +69,14 @@ class VersionParser
return $stability === 'rc' ? 'RC' : $stability; return $stability === 'rc' ? 'RC' : $stability;
} }
/**
* @deprecated Use PackageInterface::getFullPrettyVersion instead
*/
public static function formatVersion(PackageInterface $package, $truncate = true) 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); return $package->getFullPrettyVersion($truncate);
} }