Преглед изворни кода

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;
                     }
                 }
             }