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 dynamic properties warnings #2860
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pull request!
In Timber 2.0, we also have #[\AllowDynamicProperties]
on Timber\PostType
.
Line 11 in 7992eee
#[AllowDynamicProperties] |
Because Timber\PostType
doesn’t extend Timber\Core
, I think we should add it there as well.
Good catch @gchtr. That's been updated in this PR |
Any chance of getting this merged and tagged @gchtr? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all good 👍
This is now released in https://github.com/timber/timber/releases/tag/1.24.0 |
Thanks @gchtr |
Related:
Issue
This removes the warnings that flood a site on newer versions of PHP
Solution
Implement the
#[\AllowDynamicProperties]
attribute. This is not a BC break as older versions of PHP would see this as a comment and ignore it.Impact
None.