diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-08-17 14:20:22 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-08-17 14:20:22 -0700 |
commit | fea1f68f7eb6a0b5954957142e4abd6914c47471 (patch) | |
tree | 77011aa9a6ba84d1e1cc833451d677b151570e52 /src/php/lib/Grpc | |
parent | 2461bf675ec23f513569a14933609f09b4ff3854 (diff) |
php: fixed constant typo
Diffstat (limited to 'src/php/lib/Grpc')
-rwxr-xr-x | src/php/lib/Grpc/BaseStub.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php index 9d6a77b855..2e980c5eed 100755 --- a/src/php/lib/Grpc/BaseStub.php +++ b/src/php/lib/Grpc/BaseStub.php @@ -110,10 +110,10 @@ class BaseStub { } private function _checkConnectivityState($new_state) { - if ($new_state == Grpc\CHANNEL_READY) { + if ($new_state == \Grpc\CHANNEL_READY) { return true; } - if ($new_state == Grpc\CHANNEL_FATAL_ERROR) { + if ($new_state == \Grpc\CHANNEL_FATAL_FAILURE) { throw new Exception('Failed to connect to server'); } return false; |