Skip to content

Commit

Permalink
Migrate to PSR-18 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien authored Jul 31, 2022
1 parent c088e1a commit a02de61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Geo6.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
use Geocoder\Provider\Provider;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Http\Client\HttpClient;
use Jose\Component\Core\AlgorithmManager;
use Jose\Component\Core\Converter\StandardConverter;
use Jose\Component\Core\JWK;
use Jose\Component\Signature\Algorithm\HS512;
use Jose\Component\Signature\JWSBuilder;
use Jose\Component\Signature\Serializer\CompactSerializer;
use Psr\Http\Client\ClientInterface;

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

/**
* @param HttpClient $client an HTTP adapter
* @param ClientInterface $client an HTTP adapter
*/
public function __construct(HttpClient $client, string $clientId, string $privateKey, bool $useGeo6Token = false)
public function __construct(ClientInterface $client, string $clientId, string $privateKey, bool $useGeo6Token = false)
{
$this->clientId = $clientId;
$this->privateKey = $privateKey;
Expand Down
4 changes: 2 additions & 2 deletions Tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

use Geocoder\IntegrationTest\ProviderIntegrationTest;
use Geocoder\Provider\Geo6\Geo6;
use Http\Client\HttpClient;
use Psr\Http\Client\ClientInterface;

class IntegrationTest extends ProviderIntegrationTest
{
Expand All @@ -30,7 +30,7 @@ class IntegrationTest extends ProviderIntegrationTest
'testExceptions' => 'Does not allow geocode query without data.',
];

protected function createProvider(HttpClient $httpClient)
protected function createProvider(ClientInterface $httpClient)
{
return new Geo6($httpClient, $this->getCustomerId(), $this->getApiKey());
}
Expand Down

0 comments on commit a02de61

Please sign in to comment.