Skip to content

Commit

Permalink
Deprecate SplFixedArray::__wakeup()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TysonAndre committed Aug 8, 2024
1 parent 80ae7f7 commit 684b87a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ext/spl/spl_fixedarray.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSe
{
public function __construct(int $size = 0) {}

/** @tentative-return-type */
/**
* @tentative-return-type
* @deprecated
*/
public function __wakeup(): void {}

public function __serialize(): array {}
Expand Down
4 changes: 2 additions & 2 deletions ext/spl/spl_fixedarray_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 684b87a

Please sign in to comment.