File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
22
use Geocoder \Query \ReverseQuery ;
23
23
use Geocoder \Http \Provider \AbstractHttpProvider ;
24
24
use Geocoder \Provider \Provider ;
25
- use Http \Client \HttpClient ;
25
+ use Psr \ Http \Client \ClientInterface ;
26
26
27
27
/**
28
28
* @author William Durand <william.durand1@gmail.com>
@@ -50,13 +50,13 @@ final class IpInfoDb extends AbstractHttpProvider implements Provider
50
50
private $ endpointUrl ;
51
51
52
52
/**
53
- * @param HttpClient $client an HTTP adapter
54
- * @param string $apiKey an API key
55
- * @param string $precision The endpoint precision. Either "city" or "country" (faster)
53
+ * @param ClientInterface $client an HTTP adapter
54
+ * @param string $apiKey an API key
55
+ * @param string $precision The endpoint precision. Either "city" or "country" (faster)
56
56
*
57
57
* @throws \Geocoder\Exception\InvalidArgument
58
58
*/
59
- public function __construct (HttpClient $ client , string $ apiKey , string $ precision = 'city ' )
59
+ public function __construct (ClientInterface $ client , string $ apiKey , string $ precision = 'city ' )
60
60
{
61
61
parent ::__construct ($ client );
62
62
Original file line number Diff line number Diff line change 14
14
15
15
use Geocoder \IntegrationTest \ProviderIntegrationTest ;
16
16
use Geocoder \Provider \IpInfoDb \IpInfoDb ;
17
- use Http \Client \HttpClient ;
17
+ use Psr \ Http \Client \ClientInterface ;
18
18
19
19
/**
20
20
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -27,7 +27,7 @@ class IntegrationTest extends ProviderIntegrationTest
27
27
28
28
protected $ testIpv6 = false ;
29
29
30
- protected function createProvider (HttpClient $ httpClient )
30
+ protected function createProvider (ClientInterface $ httpClient )
31
31
{
32
32
return new IpInfoDb ($ httpClient , $ this ->getApiKey ());
33
33
}
You can’t perform that action at this time.
0 commit comments