Browse Source

Merge pull request #6926 from stof/fix_platform_reqs

Fix the platform requirement check command
Jordi Boggiano 7 năm trước cách đây
mục cha
commit
57b3e24514
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Command/CheckPlatformReqsCommand.php

+ 1 - 1
src/Composer/Command/CheckPlatformReqsCommand.php

@@ -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(),