소스 검색

compare against correct format

nevvermind 9 년 전
부모
커밋
4fd9a3ceee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Package/Version/VersionParser.php

+ 1 - 1
src/Composer/Package/Version/VersionParser.php

@@ -229,7 +229,7 @@ class VersionParser
             }
 
             // if the required Plugin API version is exactly "1.0.0", convert it to "^1.0", to keep BC
-            if ('composer-plugin-api' === $target && $this->isOldStylePluginApiVersion($constraint)) {
+            if ('composer-plugin-api' === strtolower($target) && $this->isOldStylePluginApiVersion($constraint)) {
                 $parsedConstraint = $this->parseConstraints('^1.0');
             }