Explorar o código

removing incorrect optimization

Shane Auckland %!s(int64=12) %!d(string=hai) anos
pai
achega
914a4b32e4
Modificáronse 1 ficheiros con 2 adicións e 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;
                 }