remove 'method_exists' clause

pull/23020/head
jeffreyqw 5 years ago
parent 35993468cd
commit 3a598311af
  1. 7
      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();
}
/**

Loading…
Cancel
Save