Merge pull request #2961 from stanley-cheung/php_waitforready
php: fixed constant typo
diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php
index 9d6a77b..2e980c5 100755
--- a/src/php/lib/Grpc/BaseStub.php
+++ b/src/php/lib/Grpc/BaseStub.php
@@ -110,10 +110,10 @@
}
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;