File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 17
17
use Geocoder \Exception \InvalidServerResponse ;
18
18
use Geocoder \Exception \UnsupportedOperation ;
19
19
use Geocoder \Http \Provider \AbstractHttpProvider ;
20
- use Geocoder \Model \Address ;
21
20
use Geocoder \Model \AddressBuilder ;
22
21
use Geocoder \Model \AddressCollection ;
23
22
use Geocoder \Provider \Provider ;
24
23
use Geocoder \Query \GeocodeQuery ;
25
24
use Geocoder \Query \ReverseQuery ;
26
- use Http \Client \HttpClient ;
25
+ use Psr \ Http \Client \ClientInterface ;
27
26
28
27
/**
29
28
* @author Jonathan Beliën <jbe@geo6.be>
@@ -41,9 +40,9 @@ final class Geopunt extends AbstractHttpProvider implements Provider
41
40
const REVERSE_ENDPOINT_URL = 'https://loc.geopunt.be/v4/Location?latlon=%F,%F&c=%d ' ;
42
41
43
42
/**
44
- * @param HttpClient $client an HTTP adapter
43
+ * @param ClientInterface $client an HTTP adapter
45
44
*/
46
- public function __construct (HttpClient $ client )
45
+ public function __construct (ClientInterface $ client )
47
46
{
48
47
parent ::__construct ($ client );
49
48
}
Original file line number Diff line number Diff line change 12
12
13
13
use Geocoder \IntegrationTest \ProviderIntegrationTest ;
14
14
use Geocoder \Provider \Geopunt \Geopunt ;
15
- use Http \Client \HttpClient ;
15
+ use Psr \ Http \Client \ClientInterface ;
16
16
17
17
class IntegrationTest extends ProviderIntegrationTest
18
18
{
@@ -30,7 +30,7 @@ class IntegrationTest extends ProviderIntegrationTest
30
30
'testReverseQueryWithNoResults ' => 'Geopunt provider supports Brussels and Flanders (Belgium) only. ' ,
31
31
];
32
32
33
- protected function createProvider (HttpClient $ httpClient )
33
+ protected function createProvider (ClientInterface $ httpClient )
34
34
{
35
35
return new Geopunt ($ httpClient );
36
36
}
You can’t perform that action at this time.
0 commit comments