Browse Source

removing incorrect optimization

Shane Auckland 12 năm trước cách đây
mục cha
commit
914a4b32e4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
                 }