Skip to content

Commit ba67312

Browse files
authored
[MapTiler] Expect a PSR-18 client instead of a PHP-HTTP client (#1160)
1 parent 3f6ddcc commit ba67312

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Provider/MapTiler/MapTiler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use Geocoder\Http\Provider\AbstractHttpProvider;
2424
use Geocoder\Model\Bounds;
2525
use Geocoder\Provider\Provider;
26-
use Http\Client\HttpClient;
26+
use Psr\Http\Client\ClientInterface;
2727

2828
/**
2929
* @author Jonathan Beliën
@@ -41,10 +41,10 @@ final class MapTiler extends AbstractHttpProvider implements Provider
4141
private $apiKey;
4242

4343
/**
44-
* @param HttpClient $client an HTTP client
45-
* @param string $key API key
44+
* @param ClientInterface $client an HTTP client
45+
* @param string $key API key
4646
*/
47-
public function __construct(HttpClient $client, string $apiKey)
47+
public function __construct(ClientInterface $client, string $apiKey)
4848
{
4949
parent::__construct($client);
5050

src/Provider/MapTiler/Tests/IntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use Geocoder\IntegrationTest\ProviderIntegrationTest;
1414
use Geocoder\Provider\MapTiler\MapTiler;
15-
use Http\Client\HttpClient;
15+
use Psr\Http\Client\ClientInterface;
1616

1717
/**
1818
* @author Jonathan Beliën
@@ -29,7 +29,7 @@ class IntegrationTest extends ProviderIntegrationTest
2929

3030
protected $skippedTests = [];
3131

32-
protected function createProvider(HttpClient $httpClient)
32+
protected function createProvider(ClientInterface $httpClient)
3333
{
3434
return new MapTiler($httpClient, $this->getApiKey());
3535
}

0 commit comments

Comments
 (0)