Parcourir la source

Update RuleWatchNode.php

Thai Phan il y a 11 ans
Parent
commit
e6fdefb869
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
         }