ソースを参照

Merge pull request #3196 from thaiphan/master

Update RuleWatchNode.php
Nils Adermann 11 年 前
コミット
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;
         }