aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/lib
diff options
context:
space:
mode:
authorGravatar Rajendra Talekar <rajendra@practo.com>2017-04-10 15:07:02 +0530
committerGravatar GitHub <noreply@github.com>2017-04-10 15:07:02 +0530
commit9b3a6cc3d2fb1d24932d1507d7f278bac34deaba (patch)
treec199ced73b804303ff3927bd5dc25d8e7fdd93e7 /src/php/lib
parent921b8968732b320c4113b398ee54503021835fbd (diff)
Fixing is_a check for Channel
php ```is_a``` function expects fully qualified class name to validate.
Diffstat (limited to 'src/php/lib')
-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');
}