Skip to content

Commit e53771f

Browse files
committed
Fixed errors with $iterationEnd variable type
1 parent e1dffdb commit e53771f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/benchmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
$iterationsPerThread = ceil(min((ITERATIONS_PER_PATCH - $iterationCount) / $available_threads, 500));
155155
}
156156

157-
$iterationEnd = min($iterationCount + $iterationsPerThread, ITERATIONS_PER_PATCH);
157+
$iterationEnd = (int)min($iterationCount + $iterationsPerThread, ITERATIONS_PER_PATCH);
158158

159159
// keeps spawning child processes until we ran out of threads
160160
$fibers[] = spawnProcessFiber($cmdLibraryInput, $patchsize, $iterationCount, $iterationEnd);

0 commit comments

Comments
 (0)