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 1414
1515use Geocoder \IntegrationTest \ProviderIntegrationTest ;
1616use Geocoder \Provider \TomTom \TomTom ;
17- use Http \Client \HttpClient ;
17+ use Psr \ Http \Client \ClientInterface ;
1818
1919/**
2020 * @author Tobias Nyholm <[email protected] > @@ -29,7 +29,7 @@ class IntegrationTest extends ProviderIntegrationTest
2929
3030 protected $ testIpv6 = false ;
3131
32- protected function createProvider (HttpClient $ httpClient )
32+ protected function createProvider (ClientInterface $ httpClient )
3333 {
3434 return new TomTom ($ httpClient , $ this ->getApiKey ());
3535 }
Original file line number Diff line number Diff line change 2121use Geocoder \Query \ReverseQuery ;
2222use Geocoder \Http \Provider \AbstractHttpProvider ;
2323use Geocoder \Provider \Provider ;
24- use Http \Client \HttpClient ;
24+ use Psr \ Http \Client \ClientInterface ;
2525
2626/**
2727 * @author Antoine Corcy <[email protected] > @@ -44,10 +44,10 @@ final class TomTom extends AbstractHttpProvider implements Provider
4444 private $ apiKey ;
4545
4646 /**
47- * @param HttpClient $client an HTTP adapter
48- * @param string $apiKey an API key
47+ * @param ClientInterface $client an HTTP adapter
48+ * @param string $apiKey an API key
4949 */
50- public function __construct (HttpClient $ client , string $ apiKey )
50+ public function __construct (ClientInterface $ client , string $ apiKey )
5151 {
5252 if (empty ($ apiKey )) {
5353 throw new InvalidCredentials ('No API key provided. ' );
You can’t perform that action at this time.
0 commit comments