-
Notifications
You must be signed in to change notification settings - Fork 50
Implements __serialize and __unserialize #255
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
base: master
Are you sure you want to change the base?
Implements __serialize and __unserialize #255
Conversation
required for Serializable since PHP 8.1.0
@bastienho can we just call the existing serialize & unserialize functions - that clean up function for class removes some stuff that doesnt serialize well/ blows out the size / may have sensitive info |
@eileenmcnaughton this was my first thought, but |
@bastienho ok - so we should probably do the same things the cleanup function does in that function too - slightly differently as we would perhaps take
|
I Agree Should I implement this code in my PR ? |
@bastienho that would be great |
After some tests, we can keep the same behaviour in both functions. So I suggest to implement the cleanup function in |
@eileenmcnaughton, based on your thougths, I've revamped by PR. Specially, the implementation of |
thanks @bastienho I'll take a look - I've tagged a release in the meantime to get the regression fix out |
8f31154
to
679df0f
Compare
required for Serializable since PHP 8.1.0
https://www.php.net/manual/en/class.serializable.php