Skip to content

Conversation

@bshaffer
Copy link
Collaborator

@bshaffer bshaffer commented Jul 30, 2025

fixes #766 and see #771

depends on googleapis/gax-php#620

@bshaffer bshaffer requested a review from a team as a code owner July 30, 2025 22:07
@bshaffer bshaffer requested a review from a team July 30, 2025 22:07
@bshaffer bshaffer force-pushed the add-lro-type-to-operationresponse branch from 3a1f011 to f04ecd1 Compare August 5, 2025 19:19
@bshaffer bshaffer changed the title feat: add LRO result type to OperationResponse feat: generic types for OperationResponse and ServerStream Aug 5, 2025
$phpDocReturnType = PhpDoc::return($returnType);
$startCall = AST::return($startCall);
$genericType = match ($method->methodType) {
MethodDetails::LRO => $method->hasEmptyLroResponse
Copy link
Contributor

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.

Copy link
Collaborator Author

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

@bshaffer bshaffer merged commit d39b0a5 into main Sep 9, 2025
6 checks passed
@bshaffer bshaffer deleted the add-lro-type-to-operationresponse branch September 9, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PHPDoc for LRO return types

2 participants