diff --git a/src/Parser.php b/src/Parser.php index ce77b6e..6ec88e9 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -15,7 +15,7 @@ use Google\Protobuf\Internal\Message; use Google\Rpc\Status; use Swoole\Http\Response; -use swoole_http2_response; +use Swoole\Http2\Response as Http2Response; class Parser { @@ -50,9 +50,9 @@ public static function deserializeMessage($deserialize, string $value) } /** - * @param null|swoole_http2_response $response + * @param null|Http2Response $response * @param mixed $deserialize - * @return \Grpc\StringifyAble[]|Message[]|swoole_http2_response[] + * @return \Grpc\StringifyAble[]|Http2Response[]|Message[] */ public static function parseResponse($response, $deserialize): array { @@ -75,8 +75,7 @@ public static function parseResponse($response, $deserialize): array } /** - * @param Response - * @param mixed $response + * @param Response $response */ public static function statusFromResponse($response): ?Status {