Procházet zdrojové kódy

Abort loop correctly when package is a match

Jordi Boggiano před 5 roky
rodič
revize
a2eb0bab12
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Composer/Repository/InstalledRepository.php

+ 1 - 1
src/Composer/Repository/InstalledRepository.php

@@ -56,7 +56,7 @@ class InstalledRepository extends CompositeRepository
                         && ($constraint === null || $link->getConstraint() === null || $constraint->matches($link->getConstraint()))
                     ) {
                         $matches[] = $candidate;
-                        continue;
+                        continue 2;
                     }
                 }
             }