-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add support for custom object serialization #60
Add support for custom object serialization #60
Conversation
Excellent job, thank you! 👍 |
Actually, I'm realizing that this is somehow a BC break, because the serialized string is different (people may store serialized strings in database for example, so unserialization may break after this change), so this will need to go into the next version, I'm hesitating between releasing PHP 8.1 should be released somewhere around 25 November, so the timing may be good to do everything at the same time. What do you think? |
That's a good question! I wasn't sure, so I checked the RFC and, assuming I'm understanding it correctly, this is actually not a BC break so long as the objects continue to implement
|
Now that I think about it, it's actually making things worse if I release a version that's compatible with both serialization methods at the same time. Think about it:
Oh wow, scratch that. I read your comment but not the quoted string. So you're right, it's absolutely not a BC break. |
Released as 0.9.3! |
It will eventually become a BC break when |
I will have dropped support for PHP < 7.4 and therefore |
This adds support for the custom object serialization feature added in PHP 7.4. This is needed to suppress deprecation warnings in PHP 8.1 since the
Serializable
interface is now deprecated.