Skip to content

Commit

Permalink
frankenphp: fix loop increment and break behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tamcy committed Jun 13, 2024
1 parent 522e812 commit 53aab04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frankenphp-symfony/src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public function run(): int
}

gc_collect_cycles();
} while ($ret && (-1 === $this->loopMax || ++$loops <= $this->loopMax));

++$loops;
} while ($ret && (-1 === $this->loopMax || $loops < $this->loopMax));

return 0;
}
Expand Down

0 comments on commit 53aab04

Please sign in to comment.