Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SplFixedArray methods + add PHP 8.2.0 changelog entry #2618

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

alexandre-daubois
Copy link
Contributor

Fix #1702

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation documents both PHP 7 and 8 so removing the deprecated methods is a no go.

Has the version.xml file been updated to indicate they have been deprecated and removed? As that would help a bit.

@alexandre-daubois
Copy link
Contributor Author

Thanks for the tip about versions.xml. Does it look better now?

@alexandre-daubois alexandre-daubois force-pushed the splfixedarray-update branch 3 times, most recently from 32e09ac to 4cb8aaf Compare July 28, 2023 15:12
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kocsismate can you have a quick look?

reference/spl/versions.xml Show resolved Hide resolved
reference/spl/versions.xml Show resolved Hide resolved
<entry>8.2.0</entry>
<entry>
<function>__serialize</function> and <function>__unserialize</function>
functions are added to <classname>SplFixedArray</classname>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
functions are added to <classname>SplFixedArray</classname>.
magic methods are added to <classname>SplFixedArray</classname>.

<refentry xml:id="splfixedarray.unserialize" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>SplFixedArray::__unserialize</refname>
<refpurpose>Deserializes the <parameter>data</parameter> parameter into a SplFixedArray object</refpurpose>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<refpurpose>Deserializes the <parameter>data</parameter> parameter into a SplFixedArray object</refpurpose>
<refpurpose>Deserializes the <parameter>data</parameter> parameter into an SplFixedArray object</refpurpose>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated both, thanks for the review!

Comment on lines 78 to 79
<function>__serialize</function> and <function>__unserialize</function>
magic methods are added to <classname>SplFixedArray</classname>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<function>__serialize</function> and <function>__unserialize</function>
magic methods are added to <classname>SplFixedArray</classname>.
The <methodname>SplFixedArray::__serialize</methodname> and <methodname>SplFixedArray::__unserialize</methodname>
magic methods have been added to <classname>SplFixedArray</classname>.

Or something along those lines. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, that's better 👍

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment and then good to land

@Girgias Girgias merged commit df944b2 into php:master Jul 31, 2023
2 checks passed
@alexandre-daubois alexandre-daubois deleted the splfixedarray-update branch July 31, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SplFixedArray: invalid class synopsis
3 participants