Explorar el Código

removing incorrect optimization

Shane Auckland hace 12 años
padre
commit
914a4b32e4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Composer/DependencyResolver/Solver.php

+ 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;
                 }