Skip to content

Commit 0a9c41b

Browse files
committed
restore google/auth, sync changes for 1.74.0
1 parent 65c9d6b commit 0a9c41b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"version": "1.74.0",
99
"require": {
1010
"php": ">=7.1.0",
11-
"ext-grpc": "*"
11+
"google/protobuf": "^v3.3.0"
12+
},
13+
"require-dev": {
14+
"google/auth": "^v1.3.0"
1215
},
1316
"suggest": {
1417
"ext-protobuf": "For better performance, install the protobuf C extension.",

src/lib/UnaryCall.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@
1919

2020
namespace Grpc;
2121

22+
use stdClass;
23+
2224
/**
2325
* Represents an active call that sends a single message and then gets a
2426
* single response.
27+
*
28+
* @template T of \Google\Protobuf\Internal\Message
2529
*/
2630
class UnaryCall extends AbstractCall
2731
{
@@ -50,7 +54,7 @@ public function start($data, array $metadata = [], array $options = [])
5054
/**
5155
* Wait for the server to respond with data and a status.
5256
*
53-
* @return array [response data, status]
57+
* @return array{0: T|null, 1: stdClass} [response data, status]
5458
*/
5559
public function wait()
5660
{

0 commit comments

Comments
 (0)