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

feat: [PHP] remove legacy generate class file #9621

Merged
merged 3 commits into from
May 10, 2022

Conversation

bshaffer
Copy link
Contributor

See #9593

Remove the generation of the legacy class files for nested messages. Leave the call to class_alias at the bottom of namespaced nested message classes alone for now.

@haberman
Copy link
Member

What is the point of leaving the alias if the old classes have been removed?

@bshaffer
Copy link
Contributor Author

@haberman my thought was that, since not generating a file doesn't remove the files someone would already have, this wouldn't be destructive. However, removing the class_alias call would be destructive.

Therefore, it seemed like a better idea to do this in phases. Remove the legacy file generation, then remove the class_alias call. I'm happy to remove both if you prefer. It just technically would break Backwards Compatibility with anyone generating PHP classes.

@haberman haberman merged commit b2a51f8 into protocolbuffers:main May 10, 2022
@bshaffer bshaffer deleted the remove-class-aliases branch May 10, 2022 21:46
bithium pushed a commit to bithium/protobuf that referenced this pull request Sep 4, 2023
…iases

feat: [PHP] remove legacy generate class file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants