You are here

public static function VersionParser::normalizeStability in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/composer/semver/src/VersionParser.php \Composer\Semver\VersionParser::normalizeStability()

Parameters

string $stability:

Return value

string

File

vendor/composer/semver/src/VersionParser.php, line 74

Class

VersionParser
Version parser.

Namespace

Composer\Semver

Code

public static function normalizeStability($stability) {
  $stability = strtolower($stability);
  return $stability === 'rc' ? 'RC' : $stability;
}