Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Closed
Description
Symfony version(s) affected: 5.0.4
Description
When trying to validate a value holder proxy generated with ocramius/proxy-manager, all the public properties will be unset at construction.
This results inReflectionProperty::isInitialized() returning false as clearly documentedhere.
PR#35532 introduced check onisInitialized returning null instead of firing an__get call.
Possible Solution
Check if__get method exists before blindly returning null, as per rfc "reads from uninitialized properties will generate a TypeError unless __get() is defined".