}
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()]);
}
}
/// @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();
}
}