From 3a598311af1ce3eca8ebb56157f6198147714dce Mon Sep 17 00:00:00 2001 From: jeffreyqw <49655798+jeffreyqw@users.noreply.github.com> Date: Thu, 21 May 2020 15:26:52 -0700 Subject: [PATCH] remove 'method_exists' clause --- src/php/lib/Grpc/AbstractCall.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/php/lib/Grpc/AbstractCall.php b/src/php/lib/Grpc/AbstractCall.php index 61e7898176b..6a056323732 100644 --- a/src/php/lib/Grpc/AbstractCall.php +++ b/src/php/lib/Grpc/AbstractCall.php @@ -114,12 +114,7 @@ abstract class AbstractCall protected function _serializeMessage($data) { // Proto3 implementation - if (method_exists($data, 'serializeToString')) { - return $data->serializeToString(); - } - - // Protobuf-PHP implementation - return $data->serialize(); + return $data->serializeToString(); } /**