diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-09-01 13:22:25 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-09-02 13:34:40 -0700 |
commit | 3ff5ceaae2dd349403738f08d3e5a3fe4c74f1c2 (patch) | |
tree | 2ac321f8c8d0448afd9265bed9fa18e64cdd862e | |
parent | 03e170eaf01b0790feffc582dd1e3d1c451715e4 (diff) |
php: $metadata at API should be optional
-rw-r--r-- | src/php/lib/Grpc/BidiStreamingCall.php | 2 | ||||
-rw-r--r-- | src/php/lib/Grpc/ClientStreamingCall.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/BidiStreamingCall.php b/src/php/lib/Grpc/BidiStreamingCall.php index 2b19f031ec..c432fd52d8 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) { + public function start($metadata = array()) { $this->call->startBatch([OP_SEND_INITIAL_METADATA => $metadata]); } 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]); } |