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 2323use Geocoder \Http \Provider \AbstractHttpProvider ;
2424use Geocoder \Model \Bounds ;
2525use 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
Original file line number Diff line number Diff line change 1212
1313use Geocoder \IntegrationTest \ProviderIntegrationTest ;
1414use 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 }
You can’t perform that action at this time.
0 commit comments