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

[PHP 8.4] intl changes part 1. #4160

Merged
merged 4 commits into from
Nov 28, 2024
Merged

[PHP 8.4] intl changes part 1. #4160

merged 4 commits into from
Nov 28, 2024

Conversation

devnexen
Copy link
Member

No description provided.

@devnexen devnexen added this to the PHP 8.4 milestone Nov 26, 2024
@devnexen
Copy link
Member Author

for #3872

@devnexen devnexen requested a review from Girgias November 26, 2024 18:25
@devnexen devnexen changed the title [PHP 8.4] intl changes. [PHP 8.4] intl changes part 1. Nov 26, 2024
@@ -156,6 +156,15 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
Copy link
Member

Choose a reason for hiding this comment

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

Should also be in the error section of the page

<entry>8.4.0</entry>
<entry>
<para>
A <classname>Value</classname> is thrown if
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
A <classname>Value</classname> is thrown if
A <exceptionname>ValueError</exceptionname> is thrown if

Copy link
Member

Choose a reason for hiding this comment

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

Not addressed yet (notice ValueError) and mistake copied in error section (check all places for this mistake)

@@ -103,6 +103,15 @@
</row>
</thead>
<tbody>
<row>
Copy link
Member

Choose a reason for hiding this comment

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

Same remarks as for dateformatter

<row>
<entry>8.4.0</entry>
<entry>
<para>
Copy link
Member

Choose a reason for hiding this comment

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

Please use simpara

<row>
<entry>8.4.0</entry>
<entry>
<para>
Copy link
Member

Choose a reason for hiding this comment

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

simpara please
Also add this to the error section of the page

<entry>8.4.0</entry>
<entry>
<para>
A <classname>TypeError</classname> is thrown if
Copy link
Member

Choose a reason for hiding this comment

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

Use exceptionname instead of classname in these descriptions

@@ -73,6 +72,52 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
Copy link
Member

Choose a reason for hiding this comment

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

I think we usually use an itemizedlist for multiple errors, also: simpara. But I'll divert to @Girgias for the markup details

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we have a consistent style tbh, I have used multiple <simpara> tags in general. But I don't mind either style.

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.

Thank you, XML markup nits

Comment on lines 149 to 152
<para>
A <exceptionname>ValueError</exceptionname> is thrown if
<parameter>locale</parameter> is invalid.
</para>
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
<para>
A <exceptionname>ValueError</exceptionname> is thrown if
<parameter>locale</parameter> is invalid.
</para>
<simpara>
A <exceptionname>ValueError</exceptionname> is thrown if
<parameter>locale</parameter> is invalid.
</simpara>

Comment on lines 97 to 100
<para>
A <exceptionname>ValueError</exceptionname> is thrown if
<parameter>locale</parameter> is invalid.
</para>
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
<para>
A <exceptionname>ValueError</exceptionname> is thrown if
<parameter>locale</parameter> is invalid.
</para>
<simpara>
A <exceptionname>ValueError</exceptionname> is thrown if
<parameter>locale</parameter> is invalid.
</simpara>

@@ -73,6 +72,52 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we have a consistent style tbh, I have used multiple <simpara> tags in general. But I don't mind either style.

Comment on lines 90 to 92
&reftitle.changelog;
<para>
<informaltable>
Copy link
Member

Choose a reason for hiding this comment

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

The wrapping <para> tag here is useless.

Comment on lines 118 to 121
</refsect1>


<refsect1 role="examples">
Copy link
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
</refsect1>
<refsect1 role="examples">
</refsect1>
<refsect1 role="examples">

Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

I don't see problems anymore

@Girgias Girgias merged commit b35a226 into php:master Nov 28, 2024
2 checks passed
@devnexen devnexen deleted the intl_upd_84 branch November 30, 2024 10:23
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.

3 participants