Skip to content

Commit 114eea9

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 d89611a + 0d2c0e0 commit 114eea9

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)