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 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 William Durand <[email protected] > @@ -44,10 +44,10 @@ final class IP2Location extends AbstractHttpProvider implements Provider
4444 private $ endpointUrl ;
4545
4646 /**
47- * @param HttpClient $client a HTTP adapter
48- * @param string $apiKey an API key
47+ * @param ClientInterface $client a 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 parent ::__construct ($ client );
5353
Original file line number Diff line number Diff line change 1212
1313use Geocoder \IntegrationTest \ProviderIntegrationTest ;
1414use Geocoder \Provider \IP2Location \IP2Location ;
15- use Http \Client \HttpClient ;
15+ use Psr \ Http \Client \ClientInterface ;
1616
1717/**
1818 * @author IP2Location <[email protected] > @@ -23,7 +23,7 @@ class IntegrationTest extends ProviderIntegrationTest
2323
2424 protected $ testReverse = false ;
2525
26- protected function createProvider (HttpClient $ httpClient )
26+ protected function createProvider (ClientInterface $ httpClient )
2727 {
2828 return new IP2Location ($ httpClient , $ this ->getApiKey ());
2929 }
You can’t perform that action at this time.
0 commit comments