Skip to content

Commit 383f2fe

Browse files
Fix infinite recursion in RequestIdSettingHttpClient
1 parent c83500c commit 383f2fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpClient/RequestIdSettingHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RequestIdSettingHttpClient implements HttpClientInterface
1212
use DecoratorTrait;
1313

1414
public function __construct(
15-
private readonly HttpClientInterface $client,
15+
private HttpClientInterface $client,
1616
private readonly RequestIdProviderInterface $requestIdProvider,
1717
private readonly string $headerName = 'x-request-id'
1818
) {
@@ -22,6 +22,6 @@ public function request(string $method, string $url, array $options = []): Respo
2222
{
2323
@$options['headers'][$this->headerName] = $this->requestIdProvider->getCurrentRequestId();
2424

25-
return $this->request($method, $url, $options);
25+
return $this->client->request($method, $url, $options);
2626
}
2727
}

0 commit comments

Comments
 (0)