Skip to content

Commit a7d54d1

Browse files
Revert "ext/date: Deprecate __wakeup() methods in favour of __unserialize() (#19827)"
This reverts commit 4fbd248.
1 parent f0204b7 commit a7d54d1

File tree

2 files changed

+7
-60
lines changed

2 files changed

+7
-60
lines changed

ext/date/php_date.stub.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ 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()')]
327326
public function __wakeup(): void;
328327

329328
public function __serialize(): array;
@@ -340,7 +339,6 @@ public function __serialize(): array {}
340339
public function __unserialize(array $data): void {}
341340

342341
/** @tentative-return-type */
343-
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
344342
public function __wakeup(): void {}
345343

346344
/** @tentative-return-type */
@@ -458,7 +456,6 @@ public function __serialize(): array {}
458456
public function __unserialize(array $data): void {}
459457

460458
/** @tentative-return-type */
461-
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
462459
public function __wakeup(): void {}
463460

464461
/** @tentative-return-type */
@@ -635,7 +632,6 @@ public function __serialize(): array {}
635632
public function __unserialize(array $data): void {}
636633

637634
/** @tentative-return-type */
638-
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
639635
public function __wakeup(): void {}
640636

641637
/** @tentative-return-type */
@@ -662,7 +658,6 @@ public function __serialize(): array;
662658
public function __unserialize(array $data): void;
663659

664660
/** @tentative-return-type */
665-
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
666661
public function __wakeup(): void {}
667662

668663
/** @tentative-return-type */
@@ -739,7 +734,6 @@ public function __serialize(): array;
739734
public function __unserialize(array $data): void;
740735

741736
/** @tentative-return-type */
742-
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
743737
public function __wakeup(): void {}
744738

745739
/** @tentative-return-type */

ext/date/php_date_arginfo.h

Lines changed: 7 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)