public static function Semver::satisfiedBy in Markdown 8.2
2 calls to Semver::satisfiedBy()
- InstallableLibrary::getNewerVersions in src/
Annotation/ InstallableLibrary.php - Retrieves the newer versions of the library.
- Semver::latestVersion in src/
Util/ Semver.php - Retrieves the latest version from an array of versions.
File
- src/
Util/ Semver.php, line 122
Class
- Semver
- Extends the base Composer SemVer class with additional functionality.
Namespace
Drupal\markdown\UtilCode
public static function satisfiedBy(array $versions, $constraints) {
if ($versions) {
$versions = parent::satisfiedBy($versions, $constraints);
// Detect constraint minimum stability.
if (strpos($constraints, '@') !== FALSE) {
$versions = static::satisfiedByStability($versions, VersionParser::parseStability($constraints));
}
}
return $versions;
}