← All changes
|
includes/sdk/google/grpc/grpc/src/lib/Interceptor.php
+3
-3
1.0.0
→
1.4.2
View file →
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | * See the License for the specific language governing permissions and |
| 17 | 17 | * limitations under the License. |
| 18 | 18 | * |
| 19 | 19 | */ |
| 20 | -namespace Dudlewebs\WPMCS\Grpc; | |
| 20 | +namespace Dudlewebs\WPMCS\GCP\Grpc; | |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Represents an interceptor that intercept RPC invocations before call starts. |
| 24 | 24 | * There is one proposal related to the argument $deserialize under the review. |
| @@ -51,10 +51,10 @@ | ||
| 51 | 51 | * @return InterceptorChannel |
| 52 | 52 | */ |
| 53 | 53 | public static function intercept($channel, $interceptors) |
| 54 | 54 | { |
| 55 | - if (is_array($interceptors)) { | |
| 56 | - for ($i = count($interceptors) - 1; $i >= 0; $i--) { | |
| 55 | + if (\is_array($interceptors)) { | |
| 56 | + for ($i = \count($interceptors) - 1; $i >= 0; $i--) { | |
| 57 | 57 | $channel = new Internal\InterceptorChannel($channel, $interceptors[$i]); |
| 58 | 58 | } |
| 59 | 59 | } else { |
| 60 | 60 | $channel = new Internal\InterceptorChannel($channel, $interceptors); |