Skip to content

fix: php deprecations for dynamic properties#816

Draft
bshaffer wants to merge 2 commits intomainfrom
fix-php-deprecations
Draft

fix: php deprecations for dynamic properties#816
bshaffer wants to merge 2 commits intomainfrom
fix-php-deprecations

Conversation

@bshaffer
Copy link
Copy Markdown
Collaborator

@bshaffer bshaffer commented Apr 20, 2026

This fixes the slew of deprecations we get when updating the protos due to the setting of dynamic properties on PHP objects. Unfortunately this functionality is very critical for this codebase, and removing it would require significant refactoring.

The only solution to suppressing these errors in the core google/protobuf library is to create copies of those files and maintain them in this repository, and add the #[AllowDynamicProperties] annotation there.

This solution might introduce more technical debt than it's worth to suppress a deprecation message. The best solution may be to try and refactor this library so it does not require setting of dynamic properties in the core protobuf classes. At least this PR identifies the classes which are using dynamic properties, so that we can potentially refactor them in the future!

@bshaffer bshaffer requested a review from a team as a code owner April 20, 2026 16:10
@bshaffer bshaffer marked this pull request as draft April 21, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant