DateTime::__wakeup

DateTimeImmutable::__wakeup

DateTimeInterface::__wakeup

The __wakeup handler

Warning

This function has been DEPRECATED as of PHP 8.5.0. Relying on this function is highly discouraged.

Description

#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')] public void DateTime::__wakeup()
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')] public void DateTimeImmutable::__wakeup()
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')] public void DateTimeInterface::__wakeup()

The __wakeup() handler.

Parameters

This function has no parameters.

Return Values

Initializes a DateTime object.