private function VersionParser::expandStability in Automatic Updates 7
Expand shorthand stability string to long version.
Parameters
string $stability:
Return value
string
1 call to VersionParser::expandStability()
- VersionParser::normalize in vendor/
composer/ semver/ src/ VersionParser.php - Normalizes a version string to be able to perform comparisons on it.
File
- vendor/
composer/ semver/ src/ VersionParser.php, line 527
Class
- VersionParser
- Version parser.
Namespace
Composer\SemverCode
private function expandStability($stability) {
$stability = strtolower($stability);
switch ($stability) {
case 'a':
return 'alpha';
case 'b':
return 'beta';
case 'p':
case 'pl':
return 'patch';
case 'rc':
return 'RC';
default:
return $stability;
}
}