diff --git a/core/modules/update/lib/Drupal/update/UpdateFetcher.php b/core/modules/update/lib/Drupal/update/UpdateFetcher.php index 6873045..f6177a1 100644 --- a/core/modules/update/lib/Drupal/update/UpdateFetcher.php +++ b/core/modules/update/lib/Drupal/update/UpdateFetcher.php @@ -8,7 +8,7 @@ namespace Drupal\update; use Drupal\Core\Config\ConfigFactory; -use Guzzle\Http\Client; +use Guzzle\Http\ClientInterface; use Guzzle\Http\Exception\RequestException; /** @@ -31,7 +31,7 @@ class UpdateFetcher { /** * The HTTP client to fetch the feed data with. * - * @var \Guzzle\Http\Client + * @var \Guzzle\Http\ClientInterface */ protected $httpClient; @@ -40,10 +40,10 @@ class UpdateFetcher { * * @param \Drupal\Core\Config\ConfigFactory $config_factory * The config factory. - * @param \Guzzle\Http\Client $http_client + * @param \Guzzle\Http\ClientInterface $http_client * A Guzzle client object. */ - public function __construct(ConfigFactory $config_factory, Client $http_client) { + public function __construct(ConfigFactory $config_factory, ClientInterface $http_client) { $this->fetchUrl = $config_factory->get('update.settings')->get('fetch.url'); $this->httpClient = $http_client; }