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 2222use Geocoder \Query \ReverseQuery ;
2323use Geocoder \Http \Provider \AbstractHttpProvider ;
2424use Geocoder \Provider \Provider ;
25- use Http \Client \HttpClient ;
25+ use Psr \ Http \Client \ClientInterface ;
2626
2727/**
2828 * @author Vladimir Kalinkin <[email protected] > @@ -40,10 +40,10 @@ final class PickPoint extends AbstractHttpProvider implements Provider
4040 private $ apiKey ;
4141
4242 /**
43- * @param HttpClient $client an HTTP adapter
44- * @param string $apiKey an API key
43+ * @param ClientInterface $client an HTTP adapter
44+ * @param string $apiKey an API key
4545 */
46- public function __construct (HttpClient $ client , string $ apiKey )
46+ public function __construct (ClientInterface $ client , string $ apiKey )
4747 {
4848 if (empty ($ apiKey )) {
4949 throw new InvalidCredentials ('No API key provided. ' );
Original file line number Diff line number Diff line change 1212
1313use Geocoder \IntegrationTest \ProviderIntegrationTest ;
1414use Geocoder \Provider \PickPoint \PickPoint ;
15- use Http \Client \HttpClient ;
15+ use Psr \ Http \Client \ClientInterface ;
1616
1717/**
1818 * @author Vladimir Kalinkin <[email protected] > 1919 */
2020class IntegrationTest extends ProviderIntegrationTest
2121{
22- protected function createProvider (HttpClient $ httpClient )
22+ protected function createProvider (ClientInterface $ httpClient )
2323 {
2424 return new PickPoint ($ httpClient , $ this ->getApiKey ());
2525 }
You can’t perform that action at this time.
0 commit comments