Skip to content

Commit 2f44f1d

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: always pass microseconds to usleep as integers Bump Symfony version to 5.4.34 Update VERSION for 5.4.33 Update CONTRIBUTORS for 5.4.33 Update CHANGELOG for 5.4.33
2 parents 0314e2d + 8fe833b commit 2f44f1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Response/AsyncContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function pause(float $duration): void
9595
if (\is_callable($pause = $this->response->getInfo('pause_handler'))) {
9696
$pause($duration);
9797
} elseif (0 < $duration) {
98-
usleep(1E6 * $duration);
98+
usleep((int) (1E6 * $duration));
9999
}
100100
}
101101

Response/TransportResponseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static function stream(iterable $responses, float $timeout = null): \Gene
296296
}
297297

298298
if (-1 === self::select($multi, min($timeoutMin, $timeoutMax - $elapsedTimeout))) {
299-
usleep(min(500, 1E6 * $timeoutMin));
299+
usleep((int) min(500, 1E6 * $timeoutMin));
300300
}
301301

302302
$elapsedTimeout = microtime(true) - $lastActivity;

0 commit comments

Comments
 (0)