diff --git a/src/Composer/DependencyResolver/Solver.php b/src/Composer/DependencyResolver/Solver.php index 983084086..f864273df 100644 --- a/src/Composer/DependencyResolver/Solver.php +++ b/src/Composer/DependencyResolver/Solver.php @@ -1544,9 +1544,9 @@ class Solver } if ($conflictRule->isWeak()) { - /** TODO why > or < lastWeakProblem? */ - if (!$lastWeakWhy || $why > $lastWeakWhy) { - $lastWeakProblem = $why; + /** TODO why > or < lastWeakWhy? */ + if (!$lastWeakWhy || $why > $lastWeakWhy->getId()) { + $lastWeakWhy = $conflictRule; } }