Uh oh!
There was an error while loading. Please reload this page.
Add rector to migrate __sleep() to __serialize() - #7212
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
samsonasik
left a comment
There was a problem hiding this comment.
Could you give link of example the error/deprecation notice on https://3v4l.org/ for this case?
Also probably handle __wakeup as well.
Thank you.
Not implemented in PHP core yet. I think it will be added soon. I’ll add __wakeup soon. |
ddevsr
commented
Sep 10, 2025
php/php-src#19682 already merged |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
@arshidkv12 could you add @see comment to show deprecation notice when using old behaviour vs new behaviour via https://3v4l.org/ ? Thank you.
Uh oh!
There was an error while loading. Please reload this page.
arshidkv12
commented
Sep 10, 2025
I can compile the new PHP source code and check it. |
arshidkv12
commented
Sep 10, 2025
samsonasik
commented
Sep 10, 2025
Okay, I think we can wait for more eye to check, or wait until can be reproduced at https://3v4l.org/ |
arshidkv12
commented
Sep 11, 2025
https://3v4l.org/51uu0#vgit.master Please check it. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TomasVotruba
commented
Sep 11, 2025
Thank you 👏 |
Uh oh!
There was an error while loading. Please reload this page.
This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work. |

https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods