aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanley.cheung@gmail.com>2017-04-19 14:33:58 -0700
committerGravatar GitHub <noreply@github.com>2017-04-19 14:33:58 -0700
commit7b692ca67b69eb322c774845d639686bbcceb959 (patch)
tree97226c5ee366bd84512b6cfb4850f5ff4d9c7e22 /src
parente89d9589dca278fb4d6ff0ecddf50dfeae9fb400 (diff)
parent9b3a6cc3d2fb1d24932d1507d7f278bac34deaba (diff)
Merge pull request #10543 from practo/php_basestub_channel_fix
PHP Fixing is_a check for Channel
Diffstat (limited to 'src')
-rw-r--r--src/php/lib/Grpc/BaseStub.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php
index ed504f85a8..24934491b4 100644
--- a/src/php/lib/Grpc/BaseStub.php
+++ b/src/php/lib/Grpc/BaseStub.php
@@ -87,7 +87,7 @@ class BaseStub
'ChannelCredentials::create methods');
}
if ($channel) {
- if (!is_a($channel, 'Channel')) {
+ if (!is_a($channel, 'Grpc\Channel')) {
throw new \Exception('The channel argument is not a'.
'Channel object');
}