aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib/Grpc/ClientStreamingCall.php
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-09-01 13:22:25 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-09-02 13:34:40 -0700
commit3ff5ceaae2dd349403738f08d3e5a3fe4c74f1c2 (patch)
tree2ac321f8c8d0448afd9265bed9fa18e64cdd862e /src/php/lib/Grpc/ClientStreamingCall.php
parent03e170eaf01b0790feffc582dd1e3d1c451715e4 (diff)
php: $metadata at API should be optional
Diffstat (limited to 'src/php/lib/Grpc/ClientStreamingCall.php')
-rw-r--r--src/php/lib/Grpc/ClientStreamingCall.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/php/lib/Grpc/ClientStreamingCall.php b/src/php/lib/Grpc/ClientStreamingCall.php
index 29b9185411..b96c17e751 100644
--- a/src/php/lib/Grpc/ClientStreamingCall.php
+++ b/src/php/lib/Grpc/ClientStreamingCall.php
@@ -42,7 +42,7 @@ class ClientStreamingCall extends AbstractCall {
* Start the call.
* @param array $metadata Metadata to send with the call, if applicable
*/
- public function start($metadata) {
+ public function start($metadata = array()) {
$this->call->startBatch([OP_SEND_INITIAL_METADATA => $metadata]);
}