Skip to content

Commit

Permalink
Optimized the doc about statusFromResponse.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaichao168 authored Sep 30, 2023
1 parent 3a431e8 commit 6944b15
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down

0 comments on commit 6944b15

Please sign in to comment.