Skip to content

Commit 1065ffd

Browse files
committed
🐛 Fix property type and return type for parent - can be nullable
1 parent ee512f2 commit 1065ffd

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/Collector/Stack.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class Stack
1919
private $client;
2020

2121
/**
22-
* @var Stack
22+
* @var Stack|null
2323
*/
2424
private $parent;
2525

@@ -34,7 +34,7 @@ final class Stack
3434
private $request;
3535

3636
/**
37-
* @var string
37+
* @var string|null
3838
*/
3939
private $response;
4040

@@ -44,22 +44,22 @@ final class Stack
4444
private $failed = false;
4545

4646
/**
47-
* @var string
47+
* @var string|null
4848
*/
4949
private $requestTarget;
5050

5151
/**
52-
* @var string
52+
* @var string|null
5353
*/
5454
private $requestMethod;
5555

5656
/**
57-
* @var string
57+
* @var string|null
5858
*/
5959
private $requestHost;
6060

6161
/**
62-
* @var string
62+
* @var string|null
6363
*/
6464
private $requestScheme;
6565

@@ -69,22 +69,22 @@ final class Stack
6969
private $requestPort;
7070

7171
/**
72-
* @var string
72+
* @var string|null
7373
*/
7474
private $clientRequest;
7575

7676
/**
77-
* @var string
77+
* @var string|null
7878
*/
7979
private $clientResponse;
8080

8181
/**
82-
* @var string
82+
* @var string|null
8383
*/
8484
private $clientException;
8585

8686
/**
87-
* @var int
87+
* @var int|null
8888
*/
8989
private $responseCode;
9090

@@ -94,7 +94,7 @@ final class Stack
9494
private $duration = 0;
9595

9696
/**
97-
* @var string
97+
* @var string|null
9898
*/
9999
private $curlCommand;
100100

@@ -117,7 +117,7 @@ public function getClient()
117117
}
118118

119119
/**
120-
* @return Stack
120+
* @return Stack|null
121121
*/
122122
public function getParent()
123123
{
@@ -154,7 +154,7 @@ public function getRequest()
154154
}
155155

156156
/**
157-
* @return string
157+
* @return string|null
158158
*/
159159
public function getResponse()
160160
{
@@ -186,7 +186,7 @@ public function setFailed($failed)
186186
}
187187

188188
/**
189-
* @return string
189+
* @return string|null
190190
*/
191191
public function getRequestTarget()
192192
{
@@ -202,7 +202,7 @@ public function setRequestTarget($requestTarget)
202202
}
203203

204204
/**
205-
* @return string
205+
* @return string|null
206206
*/
207207
public function getRequestMethod()
208208
{
@@ -218,7 +218,7 @@ public function setRequestMethod($requestMethod)
218218
}
219219

220220
/**
221-
* @return string
221+
* @return string|null
222222
*/
223223
public function getClientRequest()
224224
{
@@ -234,23 +234,23 @@ public function setClientRequest($clientRequest)
234234
}
235235

236236
/**
237-
* @return mixed
237+
* @return string|null
238238
*/
239239
public function getClientResponse()
240240
{
241241
return $this->clientResponse;
242242
}
243243

244244
/**
245-
* @param mixed $clientResponse
245+
* @param string $clientResponse
246246
*/
247247
public function setClientResponse($clientResponse)
248248
{
249249
$this->clientResponse = $clientResponse;
250250
}
251251

252252
/**
253-
* @return string
253+
* @return string|null
254254
*/
255255
public function getClientException()
256256
{
@@ -266,7 +266,7 @@ public function setClientException($clientException)
266266
}
267267

268268
/**
269-
* @return int
269+
* @return int|null
270270
*/
271271
public function getResponseCode()
272272
{
@@ -282,7 +282,7 @@ public function setResponseCode($responseCode)
282282
}
283283

284284
/**
285-
* @return string
285+
* @return string|null
286286
*/
287287
public function getRequestHost()
288288
{
@@ -298,7 +298,7 @@ public function setRequestHost($requestHost)
298298
}
299299

300300
/**
301-
* @return string
301+
* @return string|null
302302
*/
303303
public function getRequestScheme()
304304
{
@@ -340,7 +340,7 @@ public function setDuration($duration)
340340
}
341341

342342
/**
343-
* @return string
343+
* @return string|null
344344
*/
345345
public function getCurlCommand()
346346
{

0 commit comments

Comments
 (0)