Fix the platform requirement check command
The command must validate that the current package matches the constraint, not that any newer package matches it.pull/6926/head
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…
Reference in New Issue