diff --git a/src/frankenphp-symfony/src/Runner.php b/src/frankenphp-symfony/src/Runner.php index de8a9ad..3355cff 100644 --- a/src/frankenphp-symfony/src/Runner.php +++ b/src/frankenphp-symfony/src/Runner.php @@ -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; }