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 1818use Geocoder \Query \ReverseQuery ;
1919use Geocoder \Provider \Pelias \Pelias ;
2020use Geocoder \Provider \Provider ;
21- use Http \Client \HttpClient ;
21+ use Psr \ Http \Client \ClientInterface ;
2222
2323final class OpenRouteService extends Pelias implements Provider
2424{
@@ -32,10 +32,10 @@ final class OpenRouteService extends Pelias implements Provider
3232 private $ apiKey ;
3333
3434 /**
35- * @param HttpClient $client an HTTP adapter
36- * @param string $apiKey an API key
35+ * @param ClientInterface $client an HTTP adapter
36+ * @param string $apiKey an API key
3737 */
38- public function __construct (HttpClient $ client , string $ apiKey )
38+ public function __construct (ClientInterface $ client , string $ apiKey )
3939 {
4040 if (empty ($ apiKey )) {
4141 throw new InvalidCredentials ('No API key provided. ' );
Original file line number Diff line number Diff line change 1414
1515use Geocoder \IntegrationTest \ProviderIntegrationTest ;
1616use Geocoder \Provider \OpenRouteService \OpenRouteService ;
17- use Http \Client \HttpClient ;
17+ use Psr \ Http \Client \ClientInterface ;
1818
1919/**
2020 * @author Tobias Nyholm <tobias.nyholm@gmail.com>
@@ -29,7 +29,7 @@ class IntegrationTest extends ProviderIntegrationTest
2929
3030 protected $ testIpv6 = false ;
3131
32- protected function createProvider (HttpClient $ httpClient )
32+ protected function createProvider (ClientInterface $ httpClient )
3333 {
3434 return new OpenRouteService ($ httpClient , $ this ->getApiKey ());
3535 }
You can’t perform that action at this time.
0 commit comments