From a2eb0bab12af8c963553da288b641dfa6673780c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 18 Feb 2020 08:28:35 +0100 Subject: [PATCH] Abort loop correctly when package is a match --- src/Composer/Repository/InstalledRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/InstalledRepository.php b/src/Composer/Repository/InstalledRepository.php index 4f856e93b..49640fb90 100644 --- a/src/Composer/Repository/InstalledRepository.php +++ b/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; } } }