public static function Semver::satisfiedBy in Automatic Updates 7
Return all versions that satisfy given constraints.
Parameters
array $versions:
string $constraints:
Return value
array
File
- vendor/
composer/ semver/ src/ Semver.php, line 53
Class
Namespace
Composer\SemverCode
public static function satisfiedBy(array $versions, $constraints) {
$versions = array_filter($versions, function ($version) use ($constraints) {
return Semver::satisfies($version, $constraints);
});
return array_values($versions);
}