File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
15
15
use Geocoder \IntegrationTest \ProviderIntegrationTest ;
16
16
use Geocoder \Provider \TomTom \TomTom ;
17
- use Http \Client \HttpClient ;
17
+ use Psr \ Http \Client \ClientInterface ;
18
18
19
19
/**
20
20
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -29,7 +29,7 @@ class IntegrationTest extends ProviderIntegrationTest
29
29
30
30
protected $ testIpv6 = false ;
31
31
32
- protected function createProvider (HttpClient $ httpClient )
32
+ protected function createProvider (ClientInterface $ httpClient )
33
33
{
34
34
return new TomTom ($ httpClient , $ this ->getApiKey ());
35
35
}
Original file line number Diff line number Diff line change 21
21
use Geocoder \Query \ReverseQuery ;
22
22
use Geocoder \Http \Provider \AbstractHttpProvider ;
23
23
use Geocoder \Provider \Provider ;
24
- use Http \Client \HttpClient ;
24
+ use Psr \ Http \Client \ClientInterface ;
25
25
26
26
/**
27
27
* @author Antoine Corcy <contact@sbin.dk>
@@ -44,10 +44,10 @@ final class TomTom extends AbstractHttpProvider implements Provider
44
44
private $ apiKey ;
45
45
46
46
/**
47
- * @param HttpClient $client an HTTP adapter
48
- * @param string $apiKey an API key
47
+ * @param ClientInterface $client an HTTP adapter
48
+ * @param string $apiKey an API key
49
49
*/
50
- public function __construct (HttpClient $ client , string $ apiKey )
50
+ public function __construct (ClientInterface $ client , string $ apiKey )
51
51
{
52
52
if (empty ($ apiKey )) {
53
53
throw new InvalidCredentials ('No API key provided. ' );
You can’t perform that action at this time.
0 commit comments