Skip to content

Commit 7a19b5b

Browse files
[Contracts] Add missing return types
1 parent f8a19ae commit 7a19b5b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Response/MockResponse.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
class MockResponse implements ResponseInterface, StreamableInterface
2727
{
2828
use CommonResponseTrait;
29-
use TransportResponseTrait {
30-
doDestruct as public __destruct;
31-
}
29+
use TransportResponseTrait;
3230

3331
private string|iterable $body;
3432
private array $requestOptions = [];
@@ -106,6 +104,11 @@ public function cancel(): void
106104
}
107105
}
108106

107+
public function __destruct()
108+
{
109+
$this->doDestruct();
110+
}
111+
109112
protected function close(): void
110113
{
111114
$this->inflate = null;

0 commit comments

Comments
 (0)