Skip to content

Commit 361a587

Browse files
committed
Update stubs
1 parent a77f4b6 commit 361a587

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-0
lines changed

stubs/ext/date/DateInterval.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ public function __unserialize(array $data): void;
2828
* @tentative-return-type
2929
* @return void
3030
*/
31+
#[\Until('8.5')]
32+
public function __wakeup()
33+
{
34+
}
35+
/** @tentative-return-type */
36+
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
37+
#[\Since('8.5')]
3138
public function __wakeup()
3239
{
3340
}

stubs/ext/date/DatePeriod.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ public function __unserialize(array $data): void;
6565
* @tentative-return-type
6666
* @return void
6767
*/
68+
#[\Until('8.5')]
69+
public function __wakeup()
70+
{
71+
}
72+
/** @tentative-return-type */
73+
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
74+
#[\Since('8.5')]
6875
public function __wakeup()
6976
{
7077
}

stubs/ext/date/DateTime.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ public function __unserialize(array $data): void
1717
* @tentative-return-type
1818
* @return void
1919
*/
20+
#[\Until('8.5')]
21+
public function __wakeup()
22+
{
23+
}
24+
/** @tentative-return-type */
25+
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
26+
#[\Since('8.5')]
2027
public function __wakeup()
2128
{
2229
}

stubs/ext/date/DateTimeImmutable.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ public function __unserialize(array $data): void
1717
* @tentative-return-type
1818
* @return void
1919
*/
20+
#[\Until('8.5')]
21+
public function __wakeup()
22+
{
23+
}
24+
/** @tentative-return-type */
25+
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
26+
#[\Since('8.5')]
2027
public function __wakeup()
2128
{
2229
}

stubs/ext/date/DateTimeInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ public function diff(DateTimeInterface $targetObject, bool $absolute = false);
9191
* @tentative-return-type
9292
* @return void
9393
*/
94+
#[\Until('8.5')]
95+
public function __wakeup();
96+
/** @tentative-return-type */
97+
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
98+
#[\Since('8.5')]
9499
public function __wakeup();
95100
#[\Since('8.2')]
96101
public function __serialize(): array;

stubs/ext/date/DateTimeZone.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ public function __unserialize(array $data): void
169169
* @tentative-return-type
170170
* @return void
171171
*/
172+
#[\Until('8.5')]
173+
public function __wakeup()
174+
{
175+
}
176+
/** @tentative-return-type */
177+
#[\Deprecated(since: '8.5', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
178+
#[\Since('8.5')]
172179
public function __wakeup()
173180
{
174181
}

0 commit comments

Comments
 (0)