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 f5f2c6e commit 688b350Copy full SHA for 688b350
src/AbstractQueue.php
@@ -297,8 +297,7 @@ private function calculateSleepTime(int $pollDurationInMillis) : int
297
{
298
$pollDurationInMillis = max($pollDurationInMillis, 0);
299
$sleepTime = $pollDurationInMillis * 1000;
300
- //ints overflow to floats and already checked $pollDurationInMillis was positive
301
- return is_int($sleepTime) ? $sleepTime : PHP_INT_MAX;
+ return $sleepTime;
302
}
303
304
private function calculateEarliestGet(int $runningResetDuration) : UTCDateTime
0 commit comments