Skip to content

Commit 5a81444

Browse files
authored
Migrate to PSR-18 (#9)
1 parent a796f2c commit 5a81444

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Tests/IntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use Geocoder\IntegrationTest\ProviderIntegrationTest;
1414
use Geocoder\Provider\bpost\bpost;
15-
use Http\Client\HttpClient;
15+
use Psr\Http\Client\ClientInterface;
1616

1717
class IntegrationTest extends ProviderIntegrationTest
1818
{
@@ -28,7 +28,7 @@ class IntegrationTest extends ProviderIntegrationTest
2828
'testGeocodeQuery' => 'Belgium only.',
2929
];
3030

31-
protected function createProvider(HttpClient $httpClient)
31+
protected function createProvider(ClientInterface $httpClient)
3232
{
3333
return new bpost($httpClient);
3434
}

bpost.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
use Geocoder\Exception\InvalidServerResponse;
1818
use Geocoder\Exception\UnsupportedOperation;
1919
use Geocoder\Http\Provider\AbstractHttpProvider;
20-
use Geocoder\Model\Address;
2120
use Geocoder\Model\AddressBuilder;
2221
use Geocoder\Model\AddressCollection;
2322
use Geocoder\Provider\Provider;
2423
use Geocoder\Query\GeocodeQuery;
2524
use Geocoder\Query\ReverseQuery;
26-
use Http\Client\HttpClient;
25+
use Psr\Http\Client\ClientInterface;
2726

2827
/**
2928
* @author Jonathan Beliën <jbe@geo6.be>
@@ -36,9 +35,9 @@ final class bpost extends AbstractHttpProvider implements Provider
3635
const GEOCODE_ENDPOINT_URL = 'https://webservices-pub.bpost.be/ws/ExternalMailingAddressProofingCSREST_v1/address/validateAddresses';
3736

3837
/**
39-
* @param HttpClient $client an HTTP adapter
38+
* @param ClientInterface $client an HTTP adapter
4039
*/
41-
public function __construct(HttpClient $client)
40+
public function __construct(ClientInterface $client)
4241
{
4342
parent::__construct($client);
4443
}

0 commit comments

Comments
 (0)