@@ -323,6 +323,7 @@ public function getMicrosecond(): int;
323323 public function diff (DateTimeInterface $ targetObject , bool $ absolute = false ): DateInterval ;
324324
325325 /** @tentative-return-type */
326+ #[\Deprecated(since: '8.5 ' , message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize() ' )]
326327 public function __wakeup (): void ;
327328
328329 public function __serialize (): array ;
@@ -339,6 +340,7 @@ public function __serialize(): array {}
339340 public function __unserialize (array $ data ): void {}
340341
341342 /** @tentative-return-type */
343+ #[\Deprecated(since: '8.5 ' , message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize() ' )]
342344 public function __wakeup (): void {}
343345
344346 /** @tentative-return-type */
@@ -456,6 +458,7 @@ public function __serialize(): array {}
456458 public function __unserialize (array $ data ): void {}
457459
458460 /** @tentative-return-type */
461+ #[\Deprecated(since: '8.5 ' , message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize() ' )]
459462 public function __wakeup (): void {}
460463
461464 /** @tentative-return-type */
@@ -632,6 +635,7 @@ public function __serialize(): array {}
632635 public function __unserialize (array $ data ): void {}
633636
634637 /** @tentative-return-type */
638+ #[\Deprecated(since: '8.5 ' , message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize() ' )]
635639 public function __wakeup (): void {}
636640
637641 /** @tentative-return-type */
@@ -658,6 +662,7 @@ public function __serialize(): array;
658662 public function __unserialize (array $ data ): void ;
659663
660664 /** @tentative-return-type */
665+ #[\Deprecated(since: '8.5 ' , message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize() ' )]
661666 public function __wakeup (): void {}
662667
663668 /** @tentative-return-type */
@@ -734,6 +739,7 @@ public function __serialize(): array;
734739 public function __unserialize (array $ data ): void ;
735740
736741 /** @tentative-return-type */
742+ #[\Deprecated(since: '8.5 ' , message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize() ' )]
737743 public function __wakeup (): void {}
738744
739745 /** @tentative-return-type */
0 commit comments