Skip to content

Commit

Permalink
refactoring: use interface of Guzzle client instead of implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusPC committed Nov 17, 2021
1 parent 1a41cad commit 9269c42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1773,16 +1773,16 @@ public function getUnsafeDisablePkce() : bool {
}

/**
* @param \GuzzleHttp\Client $httpClient HTTP client this class should use to make requests
* @param \GuzzleHttp\ClientInterface $httpClient HTTP client this class should use to make requests
*/
public function setHttpClient(\GuzzleHttp\Client $httpClient) {
public function setHttpClient(\GuzzleHttp\ClientInterface $httpClient) {
$this->httpClient = $httpClient;
}

/**
* @return \GuzzleHttp\Client
* @return \GuzzleHttp\ClientInterface
*/
public function getHttpClient() : \GuzzleHttp\Client {
public function getHttpClient() : \GuzzleHttp\ClientInterface {

if (!isset($this->httpClient)) {

Expand Down

0 comments on commit 9269c42

Please sign in to comment.