Skip to content

Commit ac679ae

Browse files
committed
Deprecate SplFixedArray::__wakeup()
GH-9354 added the `__serialize` and `__unserialize` method, so unserialize() and other unserializers will call `__unserialize` instead of `__wakeup` for SplFixedArray and userland subclasses. This targets php 8.3 because we've already released betas and release candidates for php 8.2.
1 parent b87a2e6 commit ac679ae

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)