aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib/Grpc/BaseStub.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/php/lib/Grpc/BaseStub.php')
-rw-r--r--src/php/lib/Grpc/BaseStub.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php
index 489d96c8aa..b9c50b1da6 100644
--- a/src/php/lib/Grpc/BaseStub.php
+++ b/src/php/lib/Grpc/BaseStub.php
@@ -69,7 +69,7 @@ class BaseStub
return;
}
- $this->channel = static::getDefaultChannel($opts);
+ $this->channel = static::getDefaultChannel($hostname, $opts);
}
/**
@@ -79,7 +79,7 @@ class BaseStub
*
* @return Channel The channel
*/
- public static function getDefaultChannel(array $opts)
+ public static function getDefaultChannel($hostname, array $opts)
{
$package_config = json_decode(
file_get_contents(dirname(__FILE__).'/../../composer.json'),