We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0285b commit d2158b7Copy full SHA for d2158b7
src/range.php
@@ -3,7 +3,7 @@
3
namespace skrtdev\async;
4
5
function range (int $start, int $end, int $step = 1): \Generator {
6
- for ($i=$start; $i < $end; $i++) {
+ for ($i = $start; $i < $end; $i += $step) {
7
yield $i;
8
}
9
0 commit comments