You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that the property would be restored by default, similar to PHP's default behavior. baseObjectMethods.php:209 is causing this problems. get_object_vars is scope aware and does not return the attributes of child classes. ReflectionClass::getProperties should work as expected here.
The text was updated successfully, but these errors were encountered:
An object that is serialized using sleep looses instance properties that are declared in child classes:
Output
I would expect that the property would be restored by default, similar to PHP's default behavior.
baseObjectMethods.php:209 is causing this problems.
get_object_vars
is scope aware and does not return the attributes of child classes. ReflectionClass::getProperties should work as expected here.The text was updated successfully, but these errors were encountered: