protected function StabilityFlags::getStabilityInt in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/wikimedia/composer-merge-plugin/src/Merge/StabilityFlags.php \Wikimedia\Composer\Merge\StabilityFlags::getStabilityInt()
Get the stability value for a given string.
Parameters
string $name Stability name:
Return value
int Stability value
3 calls to StabilityFlags::getStabilityInt()
- StabilityFlags::getExplicitStability in vendor/
wikimedia/ composer-merge-plugin/ src/ Merge/ StabilityFlags.php - Extract the most unstable explicit stability (eg '@dev') from a version specification.
- StabilityFlags::getParsedStability in vendor/
wikimedia/ composer-merge-plugin/ src/ Merge/ StabilityFlags.php - Get the stability of a version
- StabilityFlags::__construct in vendor/
wikimedia/ composer-merge-plugin/ src/ Merge/ StabilityFlags.php
File
- vendor/
wikimedia/ composer-merge-plugin/ src/ Merge/ StabilityFlags.php, line 60
Class
- StabilityFlags
- Adapted from Composer's RootPackageLoader::extractStabilityFlags @author Bryan Davis <bd808@bd808.com>
Namespace
Wikimedia\Composer\MergeCode
protected function getStabilityInt($name) {
$name = VersionParser::normalizeStability($name);
return isset(BasePackage::$stabilities[$name]) ? BasePackage::$stabilities[$name] : BasePackage::STABILITY_STABLE;
}