2525use Geocoder \Query \Query ;
2626use Geocoder \Query \GeocodeQuery ;
2727use Geocoder \Query \ReverseQuery ;
28- use Http \Client \HttpClient ;
28+ use Psr \ Http \Client \ClientInterface ;
2929
3030/**
3131 * @author Sébastien Barré <[email protected] > @@ -116,12 +116,12 @@ final class Here extends AbstractHttpProvider implements Provider
116116 private $ apiKey ;
117117
118118 /**
119- * @param HttpClient $client an HTTP adapter
120- * @param string $appId an App ID
121- * @param string $appCode an App code
122- * @param bool $useCIT use Customer Integration Testing environment (CIT) instead of production
119+ * @param ClientInterface $client an HTTP adapter
120+ * @param string $appId an App ID
121+ * @param string $appCode an App code
122+ * @param bool $useCIT use Customer Integration Testing environment (CIT) instead of production
123123 */
124- public function __construct (HttpClient $ client , string $ appId = null , string $ appCode = null , bool $ useCIT = false )
124+ public function __construct (ClientInterface $ client , string $ appId = null , string $ appCode = null , bool $ useCIT = false )
125125 {
126126 $ this ->appId = $ appId ;
127127 $ this ->appCode = $ appCode ;
@@ -130,7 +130,7 @@ public function __construct(HttpClient $client, string $appId = null, string $ap
130130 parent ::__construct ($ client );
131131 }
132132
133- public static function createUsingApiKey (HttpClient $ client , string $ apiKey , bool $ useCIT = false ): self
133+ public static function createUsingApiKey (ClientInterface $ client , string $ apiKey , bool $ useCIT = false ): self
134134 {
135135 $ client = new self ($ client , null , null , $ useCIT );
136136 $ client ->apiKey = $ apiKey ;
0 commit comments