Skip to content

Commit f1c5586

Browse files
Merge pull request #2 from ThomasLandauer/patch-2
fix guzzle client
2 parents 201cd45 + 5c4533b commit f1c5586

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/HetznerAPIClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function setBaseUrl(string $baseUrl): self
125125
/**
126126
* @return Client
127127
*/
128-
public function getHttpClient(): Client
128+
public function getHttpClient(): GuzzleClient
129129
{
130130
return $this->httpClient;
131131
}

src/Models/Model.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace LKDev\HetznerCloud\Models;
44

55
use GuzzleHttp\Client;
6+
use LKDev\HetznerCloud\Clients\GuzzleClient;
67
use LKDev\HetznerCloud\HetznerAPIClient;
78

89
abstract class Model
@@ -17,7 +18,7 @@ abstract class Model
1718
*
1819
* @param Client $httpClient
1920
*/
20-
public function __construct(?Client $httpClient = null)
21+
public function __construct(?GuzzleClient $httpClient = null)
2122
{
2223
$this->httpClient = $httpClient == null ? HetznerAPIClient::$instance->getHttpClient() : $httpClient;
2324
}

0 commit comments

Comments
 (0)