public static function Semver::satisfies in Markdown 8.2
7 calls to Semver::satisfies()
- InstallableLibrary::isAlpha in src/
Annotation/ InstallableLibrary.php - Indicates whether this is an alpha version.
- InstallableLibrary::isBeta in src/
Annotation/ InstallableLibrary.php - Indicates whether this is a beta version.
- InstallableLibrary::isDev in src/
Annotation/ InstallableLibrary.php - Indicates whether this is an alpha version.
- InstallableLibrary::isPrerelease in src/
Annotation/ InstallableLibrary.php - Indicates whether this is any prerelease version.
- InstallableLibrary::isRc in src/
Annotation/ InstallableLibrary.php - Indicates whether this is a release candidate version.
File
- src/
Util/ Semver.php, line 162
Class
- Semver
- Extends the base Composer SemVer class with additional functionality.
Namespace
Drupal\markdown\UtilCode
public static function satisfies($version, $constraints) {
// Intercept parent method to detect constraint minimum stability.
$constraintStability = TRUE;
if (strpos($constraints, '@') !== FALSE) {
$constraintStability = !!static::satisfiedByStability([
$version,
], VersionParser::parseStability($constraints));
}
return $constraintStability && parent::satisfies($version, $constraints);
}