aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib/Grpc/UnaryCall.php
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2015-10-27 09:44:03 -0700
committerGravatar Michael Lumish <mlumish@google.com>2015-10-27 09:44:03 -0700
commit21ca91a6a41195ccee1cfde0e5f048cc9ec5d42d (patch)
tree999c471538d150371438fe9a2ef7132edb2798a5 /src/php/lib/Grpc/UnaryCall.php
parentdcd35b8ad63624b956897c1e8ede67b0e0f81a16 (diff)
parenta5fd9d1455ad4b68d8113904acbbf62ef8776cdc (diff)
Merge pull request #3978 from stanley-cheung/php_array_style
PHP: fix inconsistent array notation
Diffstat (limited to 'src/php/lib/Grpc/UnaryCall.php')
-rw-r--r--src/php/lib/Grpc/UnaryCall.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/UnaryCall.php b/src/php/lib/Grpc/UnaryCall.php
index 38af6b1d74..821c31013f 100644
--- a/src/php/lib/Grpc/UnaryCall.php
+++ b/src/php/lib/Grpc/UnaryCall.php
@@ -45,7 +45,7 @@ class UnaryCall extends AbstractCall {
* @param array $options an array of options, possible keys:
* 'flags' => a number
*/
- public function start($data, $metadata = array(), $options = array()) {
+ public function start($data, $metadata = [], $options = []) {
$message_array = ['message' => $data->serialize()];
if (isset($options['flags'])) {
$message_array['flags'] = $options['flags'];
@@ -66,6 +66,6 @@ class UnaryCall extends AbstractCall {
$event = $this->call->startBatch([
OP_RECV_MESSAGE => true,
OP_RECV_STATUS_ON_CLIENT => true]);
- return array($this->deserializeResponse($event->message), $event->status);
+ return [$this->deserializeResponse($event->message), $event->status];
}
}