Explorar el Código

compare against correct format

nevvermind hace 9 años
padre
commit
4fd9a3ceee
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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');
             }