The methods are deprecated in favour of __[un]serialize()
and symfony alredy fixed it
But core has wider usage overriding seriazed keys, especially in container serialization.
New approach (since PHP 7.4) is using https://wiki.php.net/rfc/custom_object_serialization and since PHP 8.1 using the Serializable interface is deprecated without magic methods
See core's unit tests using PHP 8.5 in latest pipelines
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /builds/issue/drupal-3548957/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php on line 12
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in /builds/issue/drupal-3548957/core/lib/Drupal/Core/Database/Connection.php on line 29
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in /builds/issue/drupal-3548957/core/lib/Drupal/Core/Cache/MemoryBackend.php on line 23
- replace methods as suggested
- provide BC
- write CR
- create MR from changes
WIP sleep wakeup __unserialize
and next for BC https://git.drupalcode.org/project/drupal/-/merge_requests/12877/commits
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.