Skip to content

Commit 679cf93

Browse files
authored
Synchronize manual with stubs for PHP 8.4 - part 1 (#4156)
1 parent 3cb239e commit 679cf93

File tree

9 files changed

+33
-12
lines changed

9 files changed

+33
-12
lines changed

reference/array/functions/array-all.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<refsect1 role="description">
1010
&reftitle.description;
1111
<methodsynopsis>
12-
<type>mixed</type><methodname>array_all</methodname>
12+
<type>bool</type><methodname>array_all</methodname>
1313
<methodparam><type>array</type><parameter>array</parameter></methodparam>
1414
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
1515
</methodsynopsis>

reference/array/functions/array-any.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<refsect1 role="description">
1010
&reftitle.description;
1111
<methodsynopsis>
12-
<type>mixed</type><methodname>array_any</methodname>
12+
<type>bool</type><methodname>array_any</methodname>
1313
<methodparam><type>array</type><parameter>array</parameter></methodparam>
1414
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
1515
</methodsynopsis>

reference/fileinfo/finfo/set-flags.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<refsect1 role="description">
1010
&reftitle.description;
1111
<methodsynopsis role="finfo">
12-
<modifier>public</modifier> <type>bool</type><methodname>finfo::set_flags</methodname>
12+
<modifier>public</modifier> <type>true</type><methodname>finfo::set_flags</methodname>
1313
<methodparam><type>int</type><parameter>flags</parameter></methodparam>
1414
</methodsynopsis>
1515
<para>

reference/fileinfo/functions/finfo-set-flags.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</methodsynopsis>
1818
<para>&style.oop;</para>
1919
<methodsynopsis role="finfo">
20-
<modifier>public</modifier> <type>bool</type><methodname>finfo::set_flags</methodname>
20+
<modifier>public</modifier> <type>true</type><methodname>finfo::set_flags</methodname>
2121
<methodparam><type>int</type><parameter>flags</parameter></methodparam>
2222
</methodsynopsis>
2323

reference/gettext/functions/bind-textdomain-codeset.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<methodsynopsis>
1212
<type class="union"><type>string</type><type>false</type></type><methodname>bind_textdomain_codeset</methodname>
1313
<methodparam><type>string</type><parameter>domain</parameter></methodparam>
14-
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>codeset</parameter></methodparam>
14+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>codeset</parameter><initializer>&null;</initializer></methodparam>
1515
</methodsynopsis>
1616
<para>
1717
<function>bind_textdomain_codeset</function> allows to set or get the
@@ -78,6 +78,13 @@
7878
is the empty <type>string</type>.
7979
</entry>
8080
</row>
81+
<row>
82+
<entry>8.4.0</entry>
83+
<entry>
84+
<parameter>codeset</parameter> is optional now.
85+
Previously, the parameter always had to be specified.
86+
</entry>
87+
</row>
8188
<row>
8289
<entry>8.0.3</entry>
8390
<entry>

reference/gettext/functions/bindtextdomain.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<methodsynopsis>
1212
<type class="union"><type>string</type><type>false</type></type><methodname>bindtextdomain</methodname>
1313
<methodparam><type>string</type><parameter>domain</parameter></methodparam>
14-
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>directory</parameter></methodparam>
14+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>directory</parameter><initializer>&null;</initializer></methodparam>
1515
</methodsynopsis>
1616
<para>
1717
The <function>bindtextdomain</function> function sets or gets the path
@@ -64,6 +64,13 @@
6464
</row>
6565
</thead>
6666
<tbody>
67+
<row>
68+
<entry>8.4.0</entry>
69+
<entry>
70+
<parameter>directory</parameter> is optional now.
71+
Previously, the parameter always had to be specified.
72+
</entry>
73+
</row>
6774
<row>
6875
<entry>8.0.3</entry>
6976
<entry>

reference/gettext/functions/textdomain.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
&reftitle.description;
1111
<methodsynopsis>
1212
<type>string</type><methodname>textdomain</methodname>
13-
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>domain</parameter></methodparam>
13+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>domain</parameter><initializer>&null;</initializer></methodparam>
1414
</methodsynopsis>
1515
<para>
1616
This function sets the domain to search within when calls are
@@ -70,6 +70,13 @@
7070
is the empty <type>string</type>.
7171
</entry>
7272
</row>
73+
<row>
74+
<entry>8.4.0</entry>
75+
<entry>
76+
<parameter>domain</parameter> is optional now.
77+
Previously, the parameter always had to be specified.
78+
</entry>
79+
</row>
7380
</tbody>
7481
</tgroup>
7582
</informaltable>

reference/intl/collator/set-strength.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
&style.oop;
1414
</para>
1515
<methodsynopsis role="Collator">
16-
<modifier>public</modifier> <type>bool</type><methodname>Collator::setStrength</methodname>
16+
<modifier>public</modifier> <type>true</type><methodname>Collator::setStrength</methodname>
1717
<methodparam><type>int</type><parameter>strength</parameter></methodparam>
1818
</methodsynopsis>
1919
<para>
2020
&style.procedural;
2121
</para>
2222
<methodsynopsis>
23-
<type>bool</type><methodname>collator_set_strength</methodname>
23+
<type>true</type><methodname>collator_set_strength</methodname>
2424
<methodparam><type>Collator</type><parameter>object</parameter></methodparam>
2525
<methodparam><type>int</type><parameter>strength</parameter></methodparam>
2626
</methodsynopsis>
@@ -177,7 +177,7 @@
177177
<refsect1 role="returnvalues">
178178
&reftitle.returnvalues;
179179
<para>
180-
&return.success;
180+
&return.true.always;
181181
</para>
182182
</refsect1>
183183

reference/intl/locale/set-default.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
&style.oop;
1414
</para>
1515
<methodsynopsis role="Locale">
16-
<modifier>public</modifier> <modifier>static</modifier> <type>bool</type><methodname>Locale::setDefault</methodname>
16+
<modifier>public</modifier> <modifier>static</modifier> <type>true</type><methodname>Locale::setDefault</methodname>
1717
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
1818
</methodsynopsis>
1919
<para>
2020
&style.procedural;
2121
</para>
2222
<methodsynopsis>
23-
<type>bool</type><methodname>locale_set_default</methodname>
23+
<type>true</type><methodname>locale_set_default</methodname>
2424
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
2525
</methodsynopsis>
2626
<para>

0 commit comments

Comments
 (0)