File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
use Geocoder \Http \Provider \AbstractHttpProvider ;
24
24
use Geocoder \Model \Bounds ;
25
25
use Geocoder \Provider \Provider ;
26
- use Http \Client \HttpClient ;
26
+ use Psr \ Http \Client \ClientInterface ;
27
27
28
28
/**
29
29
* @author Jonathan Beliën
@@ -41,10 +41,10 @@ final class MapTiler extends AbstractHttpProvider implements Provider
41
41
private $ apiKey ;
42
42
43
43
/**
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
46
46
*/
47
- public function __construct (HttpClient $ client , string $ apiKey )
47
+ public function __construct (ClientInterface $ client , string $ apiKey )
48
48
{
49
49
parent ::__construct ($ client );
50
50
Original file line number Diff line number Diff line change 12
12
13
13
use Geocoder \IntegrationTest \ProviderIntegrationTest ;
14
14
use Geocoder \Provider \MapTiler \MapTiler ;
15
- use Http \Client \HttpClient ;
15
+ use Psr \ Http \Client \ClientInterface ;
16
16
17
17
/**
18
18
* @author Jonathan Beliën
@@ -29,7 +29,7 @@ class IntegrationTest extends ProviderIntegrationTest
29
29
30
30
protected $ skippedTests = [];
31
31
32
- protected function createProvider (HttpClient $ httpClient )
32
+ protected function createProvider (ClientInterface $ httpClient )
33
33
{
34
34
return new MapTiler ($ httpClient , $ this ->getApiKey ());
35
35
}
You can’t perform that action at this time.
0 commit comments