Skip to content

Commit 274e2f6

Browse files
committed
Fix typo in deprecation message
1 parent 5620136 commit 274e2f6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

NoPrivateNetworkHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ public function stream(ResponseInterface|iterable $responses, ?float $timeout =
7878
}
7979

8080
/**
81-
* @deprecated since Symfony 7.1, configure the logger on the wrapper HTTP client directly instead
81+
* @deprecated since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead
8282
*/
8383
public function setLogger(LoggerInterface $logger): void
8484
{
85-
trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapper HTTP client directly instead.');
85+
trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapped HTTP client directly instead.');
8686

8787
if ($this->client instanceof LoggerAwareInterface) {
8888
$this->client->setLogger($logger);

ScopingHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ public function reset(): void
101101
}
102102

103103
/**
104-
* @deprecated since Symfony 7.1, configure the logger on the wrapper HTTP client directly instead
104+
* @deprecated since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead
105105
*/
106106
public function setLogger(LoggerInterface $logger): void
107107
{
108-
trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapper HTTP client directly instead.');
108+
trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapped HTTP client directly instead.');
109109

110110
if ($this->client instanceof LoggerAwareInterface) {
111111
$this->client->setLogger($logger);

TraceableHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ public function reset(): void
9090
}
9191

9292
/**
93-
* @deprecated since Symfony 7.1, configure the logger on the wrapper HTTP client directly instead
93+
* @deprecated since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead
9494
*/
9595
public function setLogger(LoggerInterface $logger): void
9696
{
97-
trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapper HTTP client directly instead.');
97+
trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapped HTTP client directly instead.');
9898

9999
if ($this->client instanceof LoggerAwareInterface) {
100100
$this->client->setLogger($logger);

0 commit comments

Comments
 (0)