File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -113,17 +113,17 @@ public function setBaseUrl(string $baseUrl): self
113113 }
114114
115115 /**
116- * @return GuzzleClient
116+ * @return Client
117117 */
118- public function getHttpClient (): GuzzleClient
118+ public function getHttpClient (): Client
119119 {
120120 return $ this ->httpClient ;
121121 }
122122
123123 /**
124- * @return GuzzleClient
124+ * @return Client
125125 */
126- public function setHttpClient (GuzzleClient $ client ): self
126+ public function setHttpClient (Client $ client ): self
127127 {
128128 $ this ->httpClient = $ client ;
129129 return $ this ;
Original file line number Diff line number Diff line change 88
99namespace Tests ;
1010
11+ use GuzzleHttp \Client ;
1112use LKDev \HetznerCloud \Clients \GuzzleClient ;
1213use LKDev \HetznerCloud \HetznerAPIClient ;
1314use LKDev \HetznerCloud \Models \Actions \Actions ;
@@ -68,7 +69,7 @@ public function testSetUserAgent()
6869 public function testSetHttpClient ()
6970 {
7071 $ client = new HetznerAPIClient ('IAmTheTestToken ' , '' );
71- $ httpClient = new GuzzleClient ( $ client );
72+ $ httpClient = new Client ( );
7273 $ client ->setHttpClient ($ httpClient );
7374 $ this ->assertEquals ($ httpClient , $ client ->getHttpClient ());
7475 }
You can’t perform that action at this time.
0 commit comments