This commit is contained in:
2021-11-29 11:22:49 +08:00
parent 40c946b58e
commit d075dd73a4
+2 -5
View File
@@ -63,15 +63,12 @@ abstract class ClientAbstracts implements IClient
/** /**
* @return string|ResponseInterface|null * @return string|null
*/ */
public function getBody(): string|ResponseInterface|null public function getBody(): string|null
{ {
if ($this->body instanceof ResponseInterface) {
return $this->body->getBody()->getContents(); return $this->body->getBody()->getContents();
} }
return $this->body;
}
/** /**