Mark VersionParser::formatVersion() as deprecated
With 1753c275ff
, this will be handled nicely.
pull/4086/head
parent
f634c6946d
commit
c5afb8f23a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue