Skip to content

Commit

Permalink
Fix typo in deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Oct 22, 2024
1 parent 5620136 commit 274e2f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions NoPrivateNetworkHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ public function stream(ResponseInterface|iterable $responses, ?float $timeout =
}

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

if ($this->client instanceof LoggerAwareInterface) {
$this->client->setLogger($logger);
Expand Down
4 changes: 2 additions & 2 deletions ScopingHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ public function reset(): void
}

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

if ($this->client instanceof LoggerAwareInterface) {
$this->client->setLogger($logger);
Expand Down
4 changes: 2 additions & 2 deletions TraceableHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ public function reset(): void
}

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

if ($this->client instanceof LoggerAwareInterface) {
$this->client->setLogger($logger);
Expand Down

0 comments on commit 274e2f6

Please sign in to comment.