Merge pull request #10543 from practo/php_basestub_channel_fix

PHP Fixing is_a check for Channel
pull/10182/head^2
Stanley Cheung 8 years ago committed by GitHub
commit 7b692ca67b
  1. 2
      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');
}

Loading…
Cancel
Save