Jordi Boggiano 13 vuotta sitten
vanhempi
commit
3b9dd59da3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Composer/Command/ShowCommand.php

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

@@ -86,7 +86,7 @@ EOT
         );
         foreach ($repos as $repository) {
             foreach ($repository->getPackages() as $package) {
-                if ($packageName === $package->getName()) {
+                if ($package->getName() === $input->getArgument('package')) {
                     if (null === $highestVersion || version_compare($package->getVersion(), $highestVersion->getVersion(), '>=')) {
                         $highestVersion = $package;
                     }