diff --git a/src/Ipstack.php b/src/Ipstack.php
index 580f1ff..2513dfd 100644
--- a/src/Ipstack.php
+++ b/src/Ipstack.php
@@ -13,7 +13,7 @@ use Drupal\Core\Render\Markup;
 use Drupal\Core\Cache\CacheBackendInterface;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\DependencyInjection\ContainerInterface;
-use GuzzleHttp\Client as HttpClient;
+use GuzzleHttp\ClientInterface;
 
 /**
  * Class Ipstack.
@@ -48,16 +48,16 @@ class Ipstack extends ControllerBase {
   protected $cacheData = FALSE;
 
   /**
-   * GuzzleHttp\Client definition.
+   * GuzzleHttp\ClientInterface definition.
    *
-   * @var \GuzzleHttp\Client
+   * @var \GuzzleHttp\ClientInterface
    */
   protected $httpClient;
 
   /**
    * Ipstack constructor.
-   */
-  public function __construct(HttpClient $http_client) {
+   */ 
+  public function __construct(ClientInterface $http_client) {
     $this->httpClient = $http_client;
   }
 
