Skip to content

Commit

Permalink
PHP-8.4: SplFixedArray::__wakeup() is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Nov 12, 2024
1 parent bd46ffd commit 32a8b2b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions reference/spl/splfixedarray/wakeup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<refpurpose>Reinitialises the array after being unserialised</refpurpose>
</refnamediv>

<refsynopsisdiv>
&warn.deprecated.function-8-4-0;
</refsynopsisdiv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="SplFixedArray">
Expand All @@ -28,6 +32,30 @@
&return.void;
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
This method is now deprecated, use
<methodname>SplFixedArray::__unserialize</methodname>
instead.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
Expand Down
2 changes: 1 addition & 1 deletion reference/spl/versions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@
<function name="splfixedarray::__construct" from="PHP 5 &gt;= 5.3.0, PHP 7, PHP 8"/>
<function name="splfixedarray::__serialize" from="PHP 8 &gt;= 8.2.0"/>
<function name="splfixedarray::__unserialize" from="PHP 8 &gt;= 8.2.0"/>
<function name="splfixedarray::__wakeup" from="PHP 5 &gt;= 5.5.0, PHP 7, PHP 8"/>
<function name="splfixedarray::__wakeup" from="PHP 5 &gt;= 5.5.0, PHP 7, PHP 8" deprecated="PHP 8 &gt;= 8.4.0"/>
<function name="splfixedarray::count" from="PHP 5 &gt;= 5.3.0, PHP 7, PHP 8"/>
<function name="splfixedarray::toarray" from="PHP 5 &gt;= 5.3.0, PHP 7, PHP 8"/>
<function name="splfixedarray::fromarray" from="PHP 5 &gt;= 5.3.0, PHP 7, PHP 8"/>
Expand Down

0 comments on commit 32a8b2b

Please sign in to comment.