Skip to content

Commit

Permalink
Fix deprecation (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Apr 12, 2024
1 parent 9b0a9fe commit f8c3344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Psr\Http\Client\ClientInterface as HttpClient;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\RequestFactoryInterface;
use Http\Discovery\HttpClientDiscovery;
use Http\Discovery\Psr18ClientDiscovery;
use Http\Discovery\Psr17FactoryDiscovery;

class Client implements ClientInterface
Expand Down Expand Up @@ -54,7 +54,7 @@ public function __construct(
RequestFactoryInterface $requestFactory = null
) {
$this->config = $config ?: Configuration::getDefaultConfiguration();
$this->client = $client ?: HttpClientDiscovery::find();
$this->client = $client ?: Psr18ClientDiscovery::find();
$this->requestFactory = $requestFactory ?: Psr17FactoryDiscovery::findRequestFactory();
}

Expand Down

0 comments on commit f8c3344

Please sign in to comment.