public function __wakeup() { // We re-create the stream of the response if ($this->response !== null) { $this->response = $this->response->withBody(\GuzzleHttp\Psr7\stream_for($this->responseBody)); } }