-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
BUGFIX: No usage of dynamic properties #3032
BUGFIX: No usage of dynamic properties #3032
Conversation
See also #2950 |
Shouldn't that target 7.3, too? |
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.
Looks good by reading.
Well, Flow 7.3 supports PHP 8.0, that's true. But what this addresses is more for PHP 8.2, see https://www.php.net/releases/8.2/en.php#deprecate_dynamic_properties – so I guess it's fine to target Flow 8.0… |
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.
This looks fine and I tested the code contained in the traits at least. However, I can imagine that there will be some merge conflicts when upmerging to 9.0 due to the little clean ups you added.
@robertlemke would you prefer I remove any cleanups before merging? |
I think they are fine, but whoever does the upmerge needs to know a little what he/she is doing. |
I hope I knew what I was doing, but for the record: I just did the upmerges. |
This patch resolves deprecation notices on PHP 8.2:
Dynamic properties in proxy classes
There are some properties that are dynamically declared in proxy classes:
Flow_Injected_Properties
Flow_Object_PropertiesToSerialize
Flow_Persistence_RelatedEntities
: this is mostly used inside of theObjectSerializationTrait
, so I thought it might make more sense to declare it there instead of adding a property using theProxyClassBuilder
Resolves #2946
parent
inside of closuresThere are some methods that will be checked against
is_callable
withparent::
:parent::Flow_Aop_Proxy_buildMethodsAndAdvicesArray
parent::__wakeup
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions