public static function Semver::satisfiedBy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/semver/src/Semver.php \Composer\Semver\Semver::satisfiedBy()
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);
}