Define variable only when actually used
parent
f24fcea35b
commit
86d5de2965
|
@ -510,9 +510,8 @@ class Solver
|
|||
*/
|
||||
private function analyzeUnsolvableRule(Problem $problem, Rule $conflictRule)
|
||||
{
|
||||
$why = spl_object_hash($conflictRule);
|
||||
|
||||
if ($conflictRule->getType() == RuleSet::TYPE_LEARNED) {
|
||||
$why = spl_object_hash($conflictRule);
|
||||
$learnedWhy = $this->learnedWhy[$why];
|
||||
$problemRules = $this->learnedPool[$learnedWhy];
|
||||
|
||||
|
|
Loading…
Reference in New Issue