Conflict handling: lastWeakWhy stores a rule, not a rule id
parent
3e0e893f26
commit
e4f40272a3
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue