Sfoglia il codice sorgente

Merge pull request #3196 from thaiphan/master

Update RuleWatchNode.php
Nils Adermann 11 anni fa
parent
commit
1e27ff5e22
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
         }