Эх сурвалжийг харах

removing incorrect optimization

Shane Auckland 12 жил өмнө
parent
commit
914a4b32e4

+ 2 - 2
src/Composer/DependencyResolver/Solver.php

@@ -677,8 +677,8 @@ class Solver
                 $systemLevel = $level;
             }
 
-            for ($i = 0, $n = 0, $count = count($this->rules); $n < $count; $i++, $n++) {
-                if ($i == $count) {
+            for ($i = 0, $n = 0; $n < count($this->rules); $i++, $n++) {
+                if ($i == count($this->rules)) {
                     $i = 0;
                 }