Skip to content

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
Contributor

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
Contributor

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

3 participants