Fix the platform requirement check command

The command must validate that the current package matches the constraint, not
that any newer package matches it.
main
Christophe Coevoet 7 years ago
parent f494f4942d
commit e91505ce30

@ -82,7 +82,7 @@ EOT
$version = $currentPlatformPackageMap[$require]->getVersion();
foreach ($links as $link) {
if (!$link->getConstraint()->matches(new Constraint('<=', $version))) {
if (!$link->getConstraint()->matches(new Constraint('=', $version))) {
$results[] = array(
$currentPlatformPackageMap[$require]->getPrettyName(),
$currentPlatformPackageMap[$require]->getPrettyVersion(),

Loading…
Cancel
Save