File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public static function parseResponse($response, $deserialize): array
60
60
if (! $ response ) {
61
61
return ['No response ' , self ::GRPC_ERROR_NO_RESPONSE , $ response ];
62
62
}
63
- if (self ::isinvalidStatus ($ response ->statusCode )) {
63
+ if (self ::isInvalidStatus ($ response ->statusCode )) {
64
64
$ message = $ response ->headers ['grpc-message ' ] ?? 'Http status Error ' ;
65
65
$ code = $ response ->headers ['grpc-status ' ] ?? ($ response ->errCode ?: $ response ->statusCode );
66
66
return [$ message , (int ) $ code , $ response ];
@@ -127,7 +127,7 @@ private static function serializeUnpackedMessage($data): string
127
127
return (string ) $ data ;
128
128
}
129
129
130
- private static function isinvalidStatus (int $ code )
130
+ private static function isInvalidStatus (int $ code ): bool
131
131
{
132
132
return $ code !== 0 && $ code !== 200 && $ code !== 400 ;
133
133
}
You can’t perform that action at this time.
0 commit comments