Просмотр исходного кода

Merge pull request #3196 from thaiphan/master

Update RuleWatchNode.php
Nils Adermann 11 лет назад
Родитель
Сommit
1e27ff5e22
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();
 
         // if there are only 2 elements, both are being watched anyway
-        if ($literals < 3) {
+        if (count($literals) < 3) {
             return;
         }