mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
Fix the platform requirement check command
The command must validate that the current package matches the constraint, not that any newer package matches it.
This commit is contained in:
parent
f494f4942d
commit
e91505ce30
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue