We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a19ae commit 7a19b5bCopy full SHA for 7a19b5b
Response/MockResponse.php
@@ -26,9 +26,7 @@
26
class MockResponse implements ResponseInterface, StreamableInterface
27
{
28
use CommonResponseTrait;
29
- use TransportResponseTrait {
30
- doDestruct as public __destruct;
31
- }
+ use TransportResponseTrait;
32
33
private string|iterable $body;
34
private array $requestOptions = [];
@@ -106,6 +104,11 @@ public function cancel(): void
106
104
}
107
105
108
+ public function __destruct()
+ {
109
+ $this->doDestruct();
110
+ }
111
+
112
protected function close(): void
113
114
$this->inflate = null;
0 commit comments