Merge pull request #7458 from staabm/patch-3
Define variable only when actually usedpull/7432/merge
commit
7079cdb70d
|
@ -510,9 +510,8 @@ class Solver
|
||||||
*/
|
*/
|
||||||
private function analyzeUnsolvableRule(Problem $problem, Rule $conflictRule)
|
private function analyzeUnsolvableRule(Problem $problem, Rule $conflictRule)
|
||||||
{
|
{
|
||||||
$why = spl_object_hash($conflictRule);
|
|
||||||
|
|
||||||
if ($conflictRule->getType() == RuleSet::TYPE_LEARNED) {
|
if ($conflictRule->getType() == RuleSet::TYPE_LEARNED) {
|
||||||
|
$why = spl_object_hash($conflictRule);
|
||||||
$learnedWhy = $this->learnedWhy[$why];
|
$learnedWhy = $this->learnedWhy[$why];
|
||||||
$problemRules = $this->learnedPool[$learnedWhy];
|
$problemRules = $this->learnedPool[$learnedWhy];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue