Ver código fonte

CI match on package names

Jordi Boggiano 14 anos atrás
pai
commit
04783d5c30
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Composer/Command/InstallCommand.php

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

@@ -41,7 +41,7 @@ class InstallCommand
         // TODO this should use the transaction returned by the solver
         foreach ($config['require'] as $name => $version) {
             foreach ($packages as $pkg) {
-                if ($pkg->getName() === $name) {
+                if (strtolower($pkg->getName()) === strtolower($name)) {
                     $package = $pkg;
                     break;
                 }