From 8e3ebb04853a424aa2939abac4ac219a9dca1a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Beli=C3=ABn?= Date: Sat, 30 Jul 2022 13:53:52 +0200 Subject: [PATCH] [MapTiler] Expect a PSR-18 client instead of a PHP-HTTP client --- src/Provider/MapTiler/MapTiler.php | 8 ++++---- src/Provider/MapTiler/Tests/IntegrationTest.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Provider/MapTiler/MapTiler.php b/src/Provider/MapTiler/MapTiler.php index d01576b8c..4569ee1e2 100644 --- a/src/Provider/MapTiler/MapTiler.php +++ b/src/Provider/MapTiler/MapTiler.php @@ -23,7 +23,7 @@ use Geocoder\Http\Provider\AbstractHttpProvider; use Geocoder\Model\Bounds; use Geocoder\Provider\Provider; -use Http\Client\HttpClient; +use Psr\Http\Client\ClientInterface; /** * @author Jonathan Beliën @@ -41,10 +41,10 @@ final class MapTiler extends AbstractHttpProvider implements Provider private $apiKey; /** - * @param HttpClient $client an HTTP client - * @param string $key API key + * @param ClientInterface $client an HTTP client + * @param string $key API key */ - public function __construct(HttpClient $client, string $apiKey) + public function __construct(ClientInterface $client, string $apiKey) { parent::__construct($client); diff --git a/src/Provider/MapTiler/Tests/IntegrationTest.php b/src/Provider/MapTiler/Tests/IntegrationTest.php index dd57bf5ef..cff43d89b 100644 --- a/src/Provider/MapTiler/Tests/IntegrationTest.php +++ b/src/Provider/MapTiler/Tests/IntegrationTest.php @@ -12,7 +12,7 @@ use Geocoder\IntegrationTest\ProviderIntegrationTest; use Geocoder\Provider\MapTiler\MapTiler; -use Http\Client\HttpClient; +use Psr\Http\Client\ClientInterface; /** * @author Jonathan Beliën @@ -29,7 +29,7 @@ class IntegrationTest extends ProviderIntegrationTest protected $skippedTests = []; - protected function createProvider(HttpClient $httpClient) + protected function createProvider(ClientInterface $httpClient) { return new MapTiler($httpClient, $this->getApiKey()); }