aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib/Grpc/BidiStreamingCall.php
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-10-27 08:59:31 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-10-27 08:59:31 -0700
commita5fd9d1455ad4b68d8113904acbbf62ef8776cdc (patch)
tree999c471538d150371438fe9a2ef7132edb2798a5 /src/php/lib/Grpc/BidiStreamingCall.php
parentdcd35b8ad63624b956897c1e8ede67b0e0f81a16 (diff)
php: fix inconsistent array notation
Diffstat (limited to 'src/php/lib/Grpc/BidiStreamingCall.php')
-rw-r--r--src/php/lib/Grpc/BidiStreamingCall.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/BidiStreamingCall.php b/src/php/lib/Grpc/BidiStreamingCall.php
index c432fd52d8..60c0fb0f82 100644
--- a/src/php/lib/Grpc/BidiStreamingCall.php
+++ b/src/php/lib/Grpc/BidiStreamingCall.php
@@ -42,7 +42,7 @@ class BidiStreamingCall extends AbstractCall {
* Start the call
* @param array $metadata Metadata to send with the call, if applicable
*/
- public function start($metadata = array()) {
+ public function start($metadata = []) {
$this->call->startBatch([OP_SEND_INITIAL_METADATA => $metadata]);
}
@@ -69,7 +69,7 @@ class BidiStreamingCall extends AbstractCall {
* @param array $options an array of options, possible keys:
* 'flags' => a number
*/
- public function write($data, $options = array()) {
+ public function write($data, $options = []) {
$message_array = ['message' => $data->serialize()];
if (isset($options['flags'])) {
$message_array['flags'] = $options['flags'];