Thai Phan пре 11 година
родитељ
комит
e6fdefb869
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Composer/DependencyResolver/RuleWatchNode.php

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

@@ -54,7 +54,7 @@ class RuleWatchNode
         $literals = $this->rule->getLiterals();
         $literals = $this->rule->getLiterals();
 
 
         // if there are only 2 elements, both are being watched anyway
         // if there are only 2 elements, both are being watched anyway
-        if ($literals < 3) {
+        if (count($literals) < 3) {
             return;
             return;
         }
         }