-
Notifications
You must be signed in to change notification settings - Fork 13
feat: generic types for OperationResponse and ServerStream #767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3a1f011 to
f04ecd1
Compare
| $phpDocReturnType = PhpDoc::return($returnType); | ||
| $startCall = AST::return($startCall); | ||
| $genericType = match ($method->methodType) { | ||
| MethodDetails::LRO => $method->hasEmptyLroResponse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
I am not in love with the mixture of match + ternary here 🤔 . But I do see the benefit over using an if statement.
But it is a nit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it and want it to stay forever
…apis/gapic-generator-php into add-lro-type-to-operationresponse
fixes #766 and see #771
depends on googleapis/gax-php#620