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 f414f9d commit eb7baf3Copy full SHA for eb7baf3
src/Illuminate/Support/Timebox.php
@@ -24,7 +24,7 @@ public function call(callable $callback, int $microseconds)
24
25
$result = $callback($this);
26
27
- $remainder = $microseconds - ((microtime(true) - $start) * 1000000);
+ $remainder = intval($microseconds - ((microtime(true) - $start) * 1000000));
28
29
if (! $this->earlyReturn && $remainder > 0) {
30
$this->usleep($remainder);
@@ -60,10 +60,10 @@ public function dontReturnEarly()
60
/**
61
* Sleep for the specified number of microseconds.
62
*
63
- * @param $microseconds
+ * @param int $microseconds
64
* @return void
65
*/
66
- protected function usleep($microseconds)
+ protected function usleep(int $microseconds)
67
{
68
usleep($microseconds);
69
}
0 commit comments