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 12
12
13
13
use Geocoder \IntegrationTest \ProviderIntegrationTest ;
14
14
use Geocoder \Provider \bpost \bpost ;
15
- use Http \Client \HttpClient ;
15
+ use Psr \ Http \Client \ClientInterface ;
16
16
17
17
class IntegrationTest extends ProviderIntegrationTest
18
18
{
@@ -28,7 +28,7 @@ class IntegrationTest extends ProviderIntegrationTest
28
28
'testGeocodeQuery ' => 'Belgium only. ' ,
29
29
];
30
30
31
- protected function createProvider (HttpClient $ httpClient )
31
+ protected function createProvider (ClientInterface $ httpClient )
32
32
{
33
33
return new bpost ($ httpClient );
34
34
}
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>
@@ -36,9 +35,9 @@ final class bpost extends AbstractHttpProvider implements Provider
36
35
const GEOCODE_ENDPOINT_URL = 'https://webservices-pub.bpost.be/ws/ExternalMailingAddressProofingCSREST_v1/address/validateAddresses ' ;
37
36
38
37
/**
39
- * @param HttpClient $client an HTTP adapter
38
+ * @param ClientInterface $client an HTTP adapter
40
39
*/
41
- public function __construct (HttpClient $ client )
40
+ public function __construct (ClientInterface $ client )
42
41
{
43
42
parent ::__construct ($ client );
44
43
}
You can’t perform that action at this time.
0 commit comments