diff --git a/src/Network/GuzzleResponse.php b/src/Network/GuzzleResponse.php index b68f2e843..3b41f6f65 100644 --- a/src/Network/GuzzleResponse.php +++ b/src/Network/GuzzleResponse.php @@ -147,8 +147,8 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface } /// @todo - fix mismatching use of "getBody()" as string here and parent "getBody()" as streaminterface - public function getBody() + public function getBody(): string { - return parent::getBody()->getContents(); + return (string) parent::getBody(); } }