Browse Source

Abort loop correctly when package is a match

Jordi Boggiano 5 years ago
parent
commit
a2eb0bab12
1 changed files with 1 additions and 1 deletions
  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;
                     }
                 }
             }