改名
This commit is contained in:
@@ -173,11 +173,11 @@ trait Message
|
||||
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return StreamInterface
|
||||
*/
|
||||
public function getBody(): string
|
||||
public function getBody(): StreamInterface
|
||||
{
|
||||
return $this->stream->getContents();
|
||||
return $this->stream;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ class ServerRequest extends Request implements ServerRequestInterface
|
||||
if (empty($this->parsedBody)) {
|
||||
$callback = Context::getContext('with.parsed.body.callback');
|
||||
|
||||
$this->parsedBody = $callback($this->getBody());
|
||||
$this->parsedBody = $callback($this->getBody()->getContents());
|
||||
}
|
||||
return $this->parsedBody;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user