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 update part 2 #4207

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions reference/intl/intlcalendar/set.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,27 @@

<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&return.type.true;
</tbody>
</tgroup>
</informaltable>
</para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&return.type.true;
<row>
<entry>8.4.0</entry>
<entry>
This had been deprecated in favor of the methods
<methodname>IntlCalendar::setDate</methodname> and
<methodname>IntlCalendar::setDateTime</methodname>.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
Expand Down
24 changes: 24 additions & 0 deletions reference/intl/intlgregoriancalendar/construct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,30 @@
</variablelist>
</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 had been deprecated in favor of the methods
<methodname>IntlGregorianCalendar::createFromDate</methodname> and
<methodname>IntlGregorianCalendar::createFromDateTime</methodname>.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

</refentry>

<!-- Keep this comment at the end of the file
Expand Down
30 changes: 30 additions & 0 deletions reference/intl/numberformatter-constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,16 @@
and <function>numfmt_set_attribute</function> with
<constant>NumberFormatter::ROUNDING_MODE</constant> attribute.
<variablelist>

<varlistentry xml:id="numberformatter.constants.round-away-from-zero">
<term>
<constant>NumberFormatter::ROUND_AWAY_FROM_ZERO</constant>
</term>
<listitem>
<simpara>&Alias; <constant>NumberFormatter::ROUND_UP</constant>.</simpara>
</listitem>
</varlistentry>

<varlistentry xml:id="numberformatter.constants.round-ceiling">
<term>
<constant>NumberFormatter::ROUND_CEILING</constant>
Expand Down Expand Up @@ -693,6 +703,17 @@
</listitem>
</varlistentry>

<varlistentry xml:id="numberformatter.constants.round-halfodd">
<term>
<constant>NumberFormatter::ROUND_HALFODD</constant>
</term>
<listitem>
<simpara>
Rounding mode to round towards the "odd neighbor".
</simpara>
</listitem>
</varlistentry>

<varlistentry xml:id="numberformatter.constants.round-halfup">
<term>
<constant>NumberFormatter::ROUND_HALFUP</constant>
Expand All @@ -705,6 +726,15 @@
</listitem>
</varlistentry>

<varlistentry xml:id="numberformatter.constants.round-towards-zero">
<term>
<constant>NumberFormatter::ROUND_TOWARDS_ZERO</constant>
Copy link
Member

Choose a reason for hiding this comment

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

There is no ROUND_TOWARDS_ZERO constant: it is ROUND_TOWARD_ZERO in fact.

</term>
<listitem>
<simpara>&Alias; <constant>NumberFormatter::ROUND_DOWN</constant>.</simpara>
</listitem>
</varlistentry>

<varlistentry xml:id="numberformatter.constants.round-up">
<term>
<constant>NumberFormatter::ROUND_UP</constant>
Expand Down
18 changes: 18 additions & 0 deletions reference/intl/numberformatter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@
<type>int</type>
<varname linkend="numberformatter.constants.default-style">NumberFormatter::DEFAULT_STYLE</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="numberformatter.constants.round-away-from-zero">NumberFormatter::ROUND_AWAY_FROM_ZERO</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
Expand All @@ -148,6 +154,12 @@
<type>int</type>
<varname linkend="numberformatter.constants.round-down">NumberFormatter::ROUND_DOWN</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="numberformatter.constants.round-towards-zero">NumberFormatter::ROUND_TOWARDS_ZERO</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
Expand All @@ -166,6 +178,12 @@
<type>int</type>
<varname linkend="numberformatter.constants.round-halfdown">NumberFormatter::ROUND_HALFDOWN</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
<type>int</type>
<varname linkend="numberformatter.constants.round-halfodd">NumberFormatter::ROUND_HALFODD</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>const</modifier>
Expand Down