diff options
author | Mark D. Roth <roth@google.com> | 2016-09-06 11:04:11 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-09-06 11:04:11 -0700 |
commit | 6c3295a5a263d853e3ceb163c7b230c2d87374f6 (patch) | |
tree | ea06d5696a2fd2f1b1c24aeffe5b1614a8501302 /src/php/lib/Grpc/BidiStreamingCall.php | |
parent | ceb39ae60c0469d9e7933ac94f10c6e63db55536 (diff) | |
parent | d57bbe7f8fda6d6146f47319db319610ec908e48 (diff) |
Merge remote-tracking branch 'upstream/master' into http_connect
Diffstat (limited to 'src/php/lib/Grpc/BidiStreamingCall.php')
-rw-r--r-- | src/php/lib/Grpc/BidiStreamingCall.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/php/lib/Grpc/BidiStreamingCall.php b/src/php/lib/Grpc/BidiStreamingCall.php index c2fdb94b86..5d6ecfb275 100644 --- a/src/php/lib/Grpc/BidiStreamingCall.php +++ b/src/php/lib/Grpc/BidiStreamingCall.php @@ -45,7 +45,7 @@ class BidiStreamingCall extends AbstractCall * * @param array $metadata Metadata to send with the call, if applicable */ - public function start($metadata = []) + public function start(array $metadata = []) { $this->call->startBatch([ OP_SEND_INITIAL_METADATA => $metadata, @@ -55,7 +55,7 @@ class BidiStreamingCall extends AbstractCall /** * Reads the next value from the server. * - * @return The next value from the server, or null if there is none + * @return mixed The next value from the server, or null if there is none */ public function read() { @@ -82,7 +82,7 @@ class BidiStreamingCall extends AbstractCall public function write($data, $options = []) { $message_array = ['message' => $data->serialize()]; - if (isset($options['flags'])) { + if (array_key_exists('flags', $options)) { $message_array['flags'] = $options['flags']; } $this->call->startBatch([ @@ -103,8 +103,8 @@ class BidiStreamingCall extends AbstractCall /** * Wait for the server to send the status, and return it. * - * @return object The status object, with integer $code, string $details, - * and array $metadata members + * @return \stdClass The status object, with integer $code, string $details, + * and array $metadata members */ public function getStatus() { |