Skip to content

Commit 1fae0b9

Browse files
authored
frankenphp: break loop when loopMax is reached (#174)
Fixes the issue that the loop doesn't exist when `$loopMax` is reached, but `$loopMax+1`. Please refer to #173 for details.
1 parent 522e812 commit 1fae0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frankenphp-symfony/src/Runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function run(): int
4949
}
5050

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

5454
return 0;
5555
}

0 commit comments

Comments
 (0)