Skip to content

Commit 43def0a

Browse files
authored
Deprecate SplFixedArray::__wakeup() (#9704)
GH-9354 added the `__serialize` and `__unserialize` method, so unserialize() and other unserializers will call `__unserialize` instead of `__wakeup` for SplFixedArray and userland subclasses. RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_splfixedarraywakeup
1 parent 80ae7f7 commit 43def0a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ext/spl/spl_fixedarray.stub.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSe
66
{
77
public function __construct(int $size = 0) {}
88

9-
/** @tentative-return-type */
9+
/**
10+
* @tentative-return-type
11+
* @deprecated
12+
*/
1013
public function __wakeup(): void {}
1114

1215
public function __serialize(): array {}

ext/spl/spl_fixedarray_arginfo.h

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

0 commit comments

Comments
 (0)