This commit is contained in:
2021-11-29 11:22:49 +08:00
parent 40c946b58e
commit d075dd73a4
+3 -6
View File
@@ -63,14 +63,11 @@ 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;
return $this->body->getBody()->getContents();
}