]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/GuzzleResponse.php
Merge pull request #10769 from MrPetovan/task/10734-unfollow-hook
[friendica.git] / src / Network / GuzzleResponse.php
index 1bb2ee4c5e8b3b8eecc92a0f5cd8d025a324d2bd..3b41f6f6540f18d1838eed48020b6cd12eebafc9 100644 (file)
@@ -68,7 +68,7 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface
                }
 
                if (!$this->isSuccess) {
-                       Logger::notice('http error', ['url' => $this->url, 'code' => $this->getReturnCode(), 'error'  => $this->error, 'callstack' => System::callstack(20)]);
+                       Logger::notice('http error', ['url' => $this->url, 'code' => $this->getReturnCode(), 'error' => $this->error, 'callstack' => System::callstack(20)]);
                        Logger::debug('debug', ['info' => $this->getHeaders()]);
                }
 
@@ -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();
        }
 }