@@ -43,7 +43,7 @@ class BaseStub
43
43
*/
44
44
public function __construct ($ hostname , $ opts , $ channel = null )
45
45
{
46
- if (!method_exists ('ChannelCredentials ' , 'isDefaultRootsPemSet ' ) ||
46
+ if (!method_exists ('Grpc\ ChannelCredentials ' , 'isDefaultRootsPemSet ' ) ||
47
47
!ChannelCredentials::isDefaultRootsPemSet ()) {
48
48
$ ssl_roots = file_get_contents (
49
49
dirname (__FILE__ ).'/../../etc/roots.pem '
@@ -120,7 +120,7 @@ private static function updateOpts($opts) {
120
120
public static function getDefaultChannel ($ hostname , array $ opts )
121
121
{
122
122
$ channel_opts = self ::updateOpts ($ opts );
123
- return new Channel ($ hostname , $ opts );
123
+ return new Channel ($ hostname , $ channel_opts );
124
124
}
125
125
126
126
/**
@@ -145,7 +145,7 @@ public function getConnectivityState($try_to_connect = false)
145
145
* @param int $timeout in microseconds
146
146
*
147
147
* @return bool true if channel is ready
148
- * @throw Exception if channel is in FATAL_ERROR state
148
+ * @throws Exception if channel is in FATAL_ERROR state
149
149
*/
150
150
public function waitForReady ($ timeout )
151
151
{
@@ -183,7 +183,7 @@ public function close()
183
183
* @param $new_state Connect state
184
184
*
185
185
* @return bool true if state is CHANNEL_READY
186
- * @throw Exception if state is CHANNEL_FATAL_FAILURE
186
+ * @throws Exception if state is CHANNEL_FATAL_FAILURE
187
187
*/
188
188
private function _checkConnectivityState ($ new_state )
189
189
{
@@ -242,7 +242,7 @@ private function _get_jwt_aud_uri($method)
242
242
* @param array $metadata The metadata map
243
243
*
244
244
* @return array $metadata Validated and key-normalized metadata map
245
- * @throw InvalidArgumentException if key contains invalid characters
245
+ * @throws InvalidArgumentException if key contains invalid characters
246
246
*/
247
247
private function _validate_and_normalize_metadata ($ metadata )
248
248
{
0 commit comments