mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Fixed Hyperf\GrpcServer\Utils\Parser::deserializeMessage() must be of the type string, object given
This commit is contained in:
parent
766433b658
commit
73a187c684
@ -141,7 +141,8 @@ class CoreMiddleware extends HttpCoreMiddleware
|
||||
$parentClass = $class->getParentClass();
|
||||
if ($parentClass->getName() === ProtobufMessage::class) {
|
||||
$request = $this->request();
|
||||
return Parser::deserializeMessage([$class->getName(), null], $request->getBody());
|
||||
$stream = $request->getBody();
|
||||
return Parser::deserializeMessage([$class->getName(), null], $stream->getContents());
|
||||
}
|
||||
|
||||
if (!$this->container->has($definition['ref']) && !$definition['allowsNull']) {
|
||||
|
Loading…
Reference in New Issue
Block a user