Skip to content
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

Fix nested message name generation #208

Merged
merged 4 commits into from
Jan 18, 2025
Merged

Fix nested message name generation #208

merged 4 commits into from
Jan 18, 2025

Conversation

sagikazarmark
Copy link
Member

@sagikazarmark sagikazarmark commented Jan 13, 2025

Overview

Fix nested message name generation

Updated PHP name generation based on the original compiler code: https://github.com/protocolbuffers/protobuf/blob/6e393fd79667597aac2bb42511fb30c31ff1611d/src/google/protobuf/compiler/php/names.cc

What this PR does / why we need it

Fixes #201
Fixes #203

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
@antonkomarev
Copy link

Tested it, it's working.

@sagikazarmark
Copy link
Member Author

Perfect, thanks!

@sagikazarmark sagikazarmark merged commit de674fc into master Jan 18, 2025
14 checks passed
@sagikazarmark sagikazarmark deleted the fix-message-name branch January 18, 2025 11:04
@antonkomarev
Copy link

antonkomarev commented Feb 23, 2025

@sagikazarmark could you publish release with these changes?

@sagikazarmark
Copy link
Member Author

@antonkomarev done: https://github.com/twirphp/twirp/releases/tag/v0.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/code-generator kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import in service class is broken for nested request and response messages
2 participants