Skip to content

Commit

Permalink
change CurlHttpClient to HttpClientInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
alanx15a2 authored and spekulatius committed Dec 7, 2022
1 parent c0b4a9a commit 3ca3445
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UsesGoutte.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Goutte\Client as GoutteClient;
use Symfony\Component\DomCrawler\Crawler;
use Symfony\Component\HttpClient\CurlHttpClient;
use Symfony\Contracts\HttpClient\HttpClientInterface;

trait UsesGoutte
{
Expand All @@ -18,7 +18,7 @@ trait UsesGoutte
/**
* Holds the HttpClient
*
* @var Symfony\Component\HttpClient\CurlHttpClient
* @var Symfony\Contracts\HttpClient\HttpClientInterface;
*/
protected $httpClient = null;

Expand All @@ -44,9 +44,9 @@ public function setClient(GoutteClient $client): self
/**
* Overwrites the httpClient
*
* @param Symfony\Component\HttpClient\CurlHttpClient $httpClient
* @param Symfony\Contracts\HttpClient\HttpClientInterface $httpClient
*/
public function setHttpClient(CurlHttpClient $httpClient): self
public function setHttpClient(HttpClientInterface $httpClient): self
{
$this->httpClient = $httpClient;

Expand Down

0 comments on commit 3ca3445

Please sign in to comment.