Conflict handling: lastWeakWhy stores a rule, not a rule id
parent
3e0e893f26
commit
e4f40272a3
|
@ -1544,9 +1544,9 @@ class Solver
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conflictRule->isWeak()) {
|
if ($conflictRule->isWeak()) {
|
||||||
/** TODO why > or < lastWeakProblem? */
|
/** TODO why > or < lastWeakWhy? */
|
||||||
if (!$lastWeakWhy || $why > $lastWeakWhy) {
|
if (!$lastWeakWhy || $why > $lastWeakWhy->getId()) {
|
||||||
$lastWeakProblem = $why;
|
$lastWeakWhy = $conflictRule;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue