Skip to content

Commit fc09446

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: always pass microseconds to usleep as integers Bump Symfony version to 6.3.11 Update VERSION for 6.3.10 Update CHANGELOG for 6.3.10 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 5c58453 + 2f44f1d commit fc09446

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
@@ -97,7 +97,7 @@ public function pause(float $duration): void
9797
if (\is_callable($pause = $this->response->getInfo('pause_handler'))) {
9898
$pause($duration);
9999
} elseif (0 < $duration) {
100-
usleep(1E6 * $duration);
100+
usleep((int) (1E6 * $duration));
101101
}
102102
}
103103

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 = hrtime(true) / 1E9 - $lastActivity;

0 commit comments

Comments
 (0)