Преглед на файлове

Abort loop correctly when package is a match

Jordi Boggiano преди 5 години
родител
ревизия
a2eb0bab12
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
                     }
                 }
             }