Skip to content

Commit d3ee29b

Browse files
authored
[PHP 8.4] intl update part 2 (#4207)
1 parent 2ab6e3f commit d3ee29b

File tree

4 files changed

+93
-15
lines changed

4 files changed

+93
-15
lines changed

reference/intl/intlcalendar/set.xml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,27 @@
145145

146146
<refsect1 role="changelog">
147147
&reftitle.changelog;
148-
<para>
149-
<informaltable>
150-
<tgroup cols="2">
151-
<thead>
152-
<row>
153-
<entry>&Version;</entry>
154-
<entry>&Description;</entry>
155-
</row>
156-
</thead>
157-
<tbody>
158-
&return.type.true;
159-
</tbody>
160-
</tgroup>
161-
</informaltable>
162-
</para>
148+
<informaltable>
149+
<tgroup cols="2">
150+
<thead>
151+
<row>
152+
<entry>&Version;</entry>
153+
<entry>&Description;</entry>
154+
</row>
155+
</thead>
156+
<tbody>
157+
&return.type.true;
158+
<row>
159+
<entry>8.4.0</entry>
160+
<entry>
161+
This had been deprecated in favor of the methods
162+
<methodname>IntlCalendar::setDate</methodname> and
163+
<methodname>IntlCalendar::setDateTime</methodname>.
164+
</entry>
165+
</row>
166+
</tbody>
167+
</tgroup>
168+
</informaltable>
163169
</refsect1>
164170

165171
<refsect1 role="examples">

reference/intl/intlgregoriancalendar/construct.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,30 @@
107107
</variablelist>
108108
</refsect1>
109109

110+
<refsect1 role="changelog">
111+
&reftitle.changelog;
112+
<informaltable>
113+
<tgroup cols="2">
114+
<thead>
115+
<row>
116+
<entry>&Version;</entry>
117+
<entry>&Description;</entry>
118+
</row>
119+
</thead>
120+
<tbody>
121+
<row>
122+
<entry>8.4.0</entry>
123+
<entry>
124+
This had been deprecated in favor of the methods
125+
<methodname>IntlGregorianCalendar::createFromDate</methodname> and
126+
<methodname>IntlGregorianCalendar::createFromDateTime</methodname>.
127+
</entry>
128+
</row>
129+
</tbody>
130+
</tgroup>
131+
</informaltable>
132+
</refsect1>
133+
110134
</refentry>
111135

112136
<!-- Keep this comment at the end of the file

reference/intl/numberformatter-constants.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,16 @@
641641
and <function>numfmt_set_attribute</function> with
642642
<constant>NumberFormatter::ROUNDING_MODE</constant> attribute.
643643
<variablelist>
644+
645+
<varlistentry xml:id="numberformatter.constants.round-away-from-zero">
646+
<term>
647+
<constant>NumberFormatter::ROUND_AWAY_FROM_ZERO</constant>
648+
</term>
649+
<listitem>
650+
<simpara>&Alias; <constant>NumberFormatter::ROUND_UP</constant>.</simpara>
651+
</listitem>
652+
</varlistentry>
653+
644654
<varlistentry xml:id="numberformatter.constants.round-ceiling">
645655
<term>
646656
<constant>NumberFormatter::ROUND_CEILING</constant>
@@ -693,6 +703,17 @@
693703
</listitem>
694704
</varlistentry>
695705

706+
<varlistentry xml:id="numberformatter.constants.round-halfodd">
707+
<term>
708+
<constant>NumberFormatter::ROUND_HALFODD</constant>
709+
</term>
710+
<listitem>
711+
<simpara>
712+
Rounding mode to round towards the "odd neighbor".
713+
</simpara>
714+
</listitem>
715+
</varlistentry>
716+
696717
<varlistentry xml:id="numberformatter.constants.round-halfup">
697718
<term>
698719
<constant>NumberFormatter::ROUND_HALFUP</constant>
@@ -705,6 +726,15 @@
705726
</listitem>
706727
</varlistentry>
707728

729+
<varlistentry xml:id="numberformatter.constants.round-towards-zero">
730+
<term>
731+
<constant>NumberFormatter::ROUND_TOWARDS_ZERO</constant>
732+
</term>
733+
<listitem>
734+
<simpara>&Alias; <constant>NumberFormatter::ROUND_DOWN</constant>.</simpara>
735+
</listitem>
736+
</varlistentry>
737+
708738
<varlistentry xml:id="numberformatter.constants.round-up">
709739
<term>
710740
<constant>NumberFormatter::ROUND_UP</constant>

reference/intl/numberformatter.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@
130130
<type>int</type>
131131
<varname linkend="numberformatter.constants.default-style">NumberFormatter::DEFAULT_STYLE</varname>
132132
</fieldsynopsis>
133+
<fieldsynopsis>
134+
<modifier>public</modifier>
135+
<modifier>const</modifier>
136+
<type>int</type>
137+
<varname linkend="numberformatter.constants.round-away-from-zero">NumberFormatter::ROUND_AWAY_FROM_ZERO</varname>
138+
</fieldsynopsis>
133139
<fieldsynopsis>
134140
<modifier>public</modifier>
135141
<modifier>const</modifier>
@@ -148,6 +154,12 @@
148154
<type>int</type>
149155
<varname linkend="numberformatter.constants.round-down">NumberFormatter::ROUND_DOWN</varname>
150156
</fieldsynopsis>
157+
<fieldsynopsis>
158+
<modifier>public</modifier>
159+
<modifier>const</modifier>
160+
<type>int</type>
161+
<varname linkend="numberformatter.constants.round-towards-zero">NumberFormatter::ROUND_TOWARDS_ZERO</varname>
162+
</fieldsynopsis>
151163
<fieldsynopsis>
152164
<modifier>public</modifier>
153165
<modifier>const</modifier>
@@ -166,6 +178,12 @@
166178
<type>int</type>
167179
<varname linkend="numberformatter.constants.round-halfdown">NumberFormatter::ROUND_HALFDOWN</varname>
168180
</fieldsynopsis>
181+
<fieldsynopsis>
182+
<modifier>public</modifier>
183+
<modifier>const</modifier>
184+
<type>int</type>
185+
<varname linkend="numberformatter.constants.round-halfodd">NumberFormatter::ROUND_HALFODD</varname>
186+
</fieldsynopsis>
169187
<fieldsynopsis>
170188
<modifier>public</modifier>
171189
<modifier>const</modifier>

0 commit comments

Comments
 (0)