From 5dd4b456b915aeda296fb659a43c38421627ebec Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Wed, 29 Apr 2020 23:02:37 +0200 Subject: [PATCH] PoolBuilder: Do not load any alternatives to pkgs replaced by fixed pkg --- 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 13f9e76ed..082c0d339 100644 --- a/src/Composer/DependencyResolver/PoolBuilder.php +++ b/src/Composer/DependencyResolver/PoolBuilder.php @@ -128,7 +128,7 @@ class PoolBuilder // 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) { - $this->loadedNames[$link->getTarget()] = $link->getConstraint(); + $this->loadedNames[$link->getTarget()] = new EmptyConstraint(); } // TODO in how far can we do the above for conflicts? It's more tricky cause conflicts can be limited to