Skip to content

Commit 796283c

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: always pass microseconds to usleep as integers Bump Symfony version to 6.4.2 Update VERSION for 6.4.1 Update CHANGELOG for 6.4.1 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 5a0ff09 + b7a8093 commit 796283c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private function checkThrottling(): void
129129
$sleep = (1 / $this->rate) - (microtime(true) - $this->lastSent);
130130
if (0 < $sleep) {
131131
$this->logger->debug(sprintf('Email transport "%s" sleeps for %.2f seconds', __CLASS__, $sleep));
132-
usleep($sleep * 1000000);
132+
usleep((int) ($sleep * 1000000));
133133
}
134134
$this->lastSent = microtime(true);
135135
}

0 commit comments

Comments
 (0)