From a5fd9d1455ad4b68d8113904acbbf62ef8776cdc Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Tue, 27 Oct 2015 08:59:31 -0700 Subject: php: fix inconsistent array notation --- src/php/lib/Grpc/UnaryCall.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/php/lib/Grpc/UnaryCall.php') 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]; } } -- cgit v1.2.3