Skip to content

Commit d9b3686

Browse files
committed
fix: suppress Guzzle warning about deprecated method
1 parent 2b71d51 commit d9b3686

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Http/GuzzleHttpClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Algolia\AlgoliaSearch\Http;
44

5+
use GuzzleHttp\Utils;
56
use Algolia\AlgoliaSearch\Http\Psr7\Response;
67
use GuzzleHttp\Client as GuzzleClient;
78
use GuzzleHttp\Exception\ConnectException;
@@ -44,7 +45,7 @@ public function sendRequest(
4445

4546
private static function buildClient(array $config = [])
4647
{
47-
$handlerStack = new HandlerStack(\GuzzleHttp\choose_handler());
48+
$handlerStack = new HandlerStack(Utils::chooseHandler());
4849
$handlerStack->push(Middleware::prepareBody(), 'prepare_body');
4950
$config = array_merge(['handler' => $handlerStack], $config);
5051

0 commit comments

Comments
 (0)