Explorar el Código

Correctly set watch2 on rule watch nodes for learned rules fixes #2181

Nils Adermann hace 11 años
padre
commit
8369624c49
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Composer/DependencyResolver/RuleWatchNode.php

+ 1 - 1
src/Composer/DependencyResolver/RuleWatchNode.php

@@ -64,7 +64,7 @@ class RuleWatchNode
             $level = $decisions->decisionLevel($literal);
 
             if ($level > $watchLevel) {
-                $this->rule->watch2 = $literal;
+                $this->watch2 = $literal;
                 $watchLevel = $level;
             }
         }