Merge pull request #22671 from mix-php/master

Update php_generator.cc - add return type annotations
reviewable/pr22749/r1
Stanley Cheung 5 years ago committed by GitHub
commit 75221952bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/compiler/php_generator.cc

@ -80,7 +80,8 @@ void PrintMethod(const MethodDescriptor* method, Printer* out) {
if (method->client_streaming()) {
out->Print(vars,
" * @param array $$metadata metadata\n"
" * @param array $$options call options\n */\n"
" * @param array $$options call options\n"
" * @return \\$output_type_id$\n */\n"
"public function $name$($$metadata = [], "
"$$options = []) {\n");
out->Indent();
@ -98,7 +99,8 @@ void PrintMethod(const MethodDescriptor* method, Printer* out) {
out->Print(vars,
" * @param \\$input_type_id$ $$argument input argument\n"
" * @param array $$metadata metadata\n"
" * @param array $$options call options\n */\n"
" * @param array $$options call options\n"
" * @return \\$output_type_id$\n */\n"
"public function $name$(\\$input_type_id$ $$argument,\n"
" $$metadata = [], $$options = []) {\n");
out->Indent();

Loading…
Cancel
Save