chore(php) #57 : bump PHP version to 8.4

This commit is contained in:
2025-07-08 11:33:13 +02:00
parent 1f49b3f56f
commit c721ce283e
9 changed files with 262 additions and 95 deletions

View File

@ -8,8 +8,8 @@ use Symfony\Contracts\HttpClient\ResponseInterface;
class Client
{
private const MAX_RETRY = 3;
private const SLEEP_TIME = [
private const int MAX_RETRY = 3;
private const array SLEEP_TIME = [
5,
500,
5000,
@ -78,7 +78,7 @@ class Client
$status = $response->getStatusCode();
if (503 === $status) {
++$attempt;
usleep(1000 * self::SLEEP_TIME[$attempt] + rand(1, 5) * 1000);
usleep(1000 * self::SLEEP_TIME[$attempt] + random_int(1, 5) * 1000);
continue;
}
switch ($status) {