소스 검색

Fix the platform requirement check command

The command must validate that the current package matches the constraint, not
that any newer package matches it.
Christophe Coevoet 7 년 전
부모
커밋
e91505ce30
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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(),