From bb4cabc0b9245e1b7aa5e34660d9848fd0332927 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Wed, 29 Apr 2020 22:56:29 +0200 Subject: [PATCH] PoolBuilder: Avoid loading any alternatives to fixed packages --- src/Composer/DependencyResolver/PoolBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/DependencyResolver/PoolBuilder.php b/src/Composer/DependencyResolver/PoolBuilder.php index 260775cd1..13f9e76ed 100644 --- a/src/Composer/DependencyResolver/PoolBuilder.php +++ b/src/Composer/DependencyResolver/PoolBuilder.php @@ -124,7 +124,7 @@ class PoolBuilder $loadNames = array(); foreach ($request->getFixedPackages() as $package) { - $this->loadedNames[$package->getName()] = new Constraint('==', $package->getVersion()); + $this->loadedNames[$package->getName()] = new EmptyConstraint(); // replace means conflict, so if a fixed package replaces a name, no need to load that one, packages would conflict anyways foreach ($package->getReplaces() as $link) {