Skip to content

Commit a02de61

Browse files
authored
Migrate to PSR-18 (#5)
1 parent c088e1a commit a02de61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Geo6.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
use Geocoder\Provider\Provider;
2424
use Geocoder\Query\GeocodeQuery;
2525
use Geocoder\Query\ReverseQuery;
26-
use Http\Client\HttpClient;
2726
use Jose\Component\Core\AlgorithmManager;
2827
use Jose\Component\Core\Converter\StandardConverter;
2928
use Jose\Component\Core\JWK;
3029
use Jose\Component\Signature\Algorithm\HS512;
3130
use Jose\Component\Signature\JWSBuilder;
3231
use Jose\Component\Signature\Serializer\CompactSerializer;
32+
use Psr\Http\Client\ClientInterface;
3333

3434
/**
3535
* @author Jonathan Beliën <jbe@geo6.be>
@@ -54,9 +54,9 @@ final class Geo6 extends AbstractHttpProvider implements Provider
5454
private $useGeo6Token = false;
5555

5656
/**
57-
* @param HttpClient $client an HTTP adapter
57+
* @param ClientInterface $client an HTTP adapter
5858
*/
59-
public function __construct(HttpClient $client, string $clientId, string $privateKey, bool $useGeo6Token = false)
59+
public function __construct(ClientInterface $client, string $clientId, string $privateKey, bool $useGeo6Token = false)
6060
{
6161
$this->clientId = $clientId;
6262
$this->privateKey = $privateKey;

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\Geo6\Geo6;
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
'testExceptions' => 'Does not allow geocode query without data.',
3131
];
3232

33-
protected function createProvider(HttpClient $httpClient)
33+
protected function createProvider(ClientInterface $httpClient)
3434
{
3535
return new Geo6($httpClient, $this->getCustomerId(), $this->getApiKey());
3636
}

0 commit comments

Comments
 (0)