Skip to content

Commit 977b17a

Browse files
authored
Migrate to PSR-18 (#6)
1 parent a46b707 commit 977b17a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Geopunt.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>
@@ -41,9 +40,9 @@ final class Geopunt extends AbstractHttpProvider implements Provider
4140
const REVERSE_ENDPOINT_URL = 'https://loc.geopunt.be/v4/Location?latlon=%F,%F&c=%d';
4241

4342
/**
44-
* @param HttpClient $client an HTTP adapter
43+
* @param ClientInterface $client an HTTP adapter
4544
*/
46-
public function __construct(HttpClient $client)
45+
public function __construct(ClientInterface $client)
4746
{
4847
parent::__construct($client);
4948
}

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\Geopunt\Geopunt;
15-
use Http\Client\HttpClient;
15+
use Psr\Http\Client\ClientInterface;
1616

1717
class IntegrationTest extends ProviderIntegrationTest
1818
{
@@ -30,7 +30,7 @@ class IntegrationTest extends ProviderIntegrationTest
3030
'testReverseQueryWithNoResults' => 'Geopunt provider supports Brussels and Flanders (Belgium) only.',
3131
];
3232

33-
protected function createProvider(HttpClient $httpClient)
33+
protected function createProvider(ClientInterface $httpClient)
3434
{
3535
return new Geopunt($httpClient);
3636
}

0 commit comments

Comments
 (0)