1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

Synchronize manual with stubs for PHP 8.4 - part 1 (#4156)

This commit is contained in:
Máté Kocsis
2024-11-26 17:49:53 +01:00
committed by GitHub
parent 3cb239e6e9
commit 679cf93fa1
9 changed files with 33 additions and 12 deletions

View File

@@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>array_all</methodname>
<type>bool</type><methodname>array_all</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
</methodsynopsis>

View File

@@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>array_any</methodname>
<type>bool</type><methodname>array_any</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
</methodsynopsis>

View File

@@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="finfo">
<modifier>public</modifier> <type>bool</type><methodname>finfo::set_flags</methodname>
<modifier>public</modifier> <type>true</type><methodname>finfo::set_flags</methodname>
<methodparam><type>int</type><parameter>flags</parameter></methodparam>
</methodsynopsis>
<para>

View File

@@ -17,7 +17,7 @@
</methodsynopsis>
<para>&style.oop;</para>
<methodsynopsis role="finfo">
<modifier>public</modifier> <type>bool</type><methodname>finfo::set_flags</methodname>
<modifier>public</modifier> <type>true</type><methodname>finfo::set_flags</methodname>
<methodparam><type>int</type><parameter>flags</parameter></methodparam>
</methodsynopsis>

View File

@@ -11,7 +11,7 @@
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>bind_textdomain_codeset</methodname>
<methodparam><type>string</type><parameter>domain</parameter></methodparam>
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>codeset</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>codeset</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
<function>bind_textdomain_codeset</function> allows to set or get the
@@ -78,6 +78,13 @@
is the empty <type>string</type>.
</entry>
</row>
<row>
<entry>8.4.0</entry>
<entry>
<parameter>codeset</parameter> is optional now.
Previously, the parameter always had to be specified.
</entry>
</row>
<row>
<entry>8.0.3</entry>
<entry>

View File

@@ -11,7 +11,7 @@
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>bindtextdomain</methodname>
<methodparam><type>string</type><parameter>domain</parameter></methodparam>
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>directory</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>directory</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
The <function>bindtextdomain</function> function sets or gets the path
@@ -64,6 +64,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
<parameter>directory</parameter> is optional now.
Previously, the parameter always had to be specified.
</entry>
</row>
<row>
<entry>8.0.3</entry>
<entry>

View File

@@ -10,7 +10,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>textdomain</methodname>
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>domain</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>domain</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
This function sets the domain to search within when calls are
@@ -70,6 +70,13 @@
is the empty <type>string</type>.
</entry>
</row>
<row>
<entry>8.4.0</entry>
<entry>
<parameter>domain</parameter> is optional now.
Previously, the parameter always had to be specified.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>

View File

@@ -13,14 +13,14 @@
&style.oop;
</para>
<methodsynopsis role="Collator">
<modifier>public</modifier> <type>bool</type><methodname>Collator::setStrength</methodname>
<modifier>public</modifier> <type>true</type><methodname>Collator::setStrength</methodname>
<methodparam><type>int</type><parameter>strength</parameter></methodparam>
</methodsynopsis>
<para>
&style.procedural;
</para>
<methodsynopsis>
<type>bool</type><methodname>collator_set_strength</methodname>
<type>true</type><methodname>collator_set_strength</methodname>
<methodparam><type>Collator</type><parameter>object</parameter></methodparam>
<methodparam><type>int</type><parameter>strength</parameter></methodparam>
</methodsynopsis>
@@ -177,7 +177,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

View File

@@ -13,14 +13,14 @@
&style.oop;
</para>
<methodsynopsis role="Locale">
<modifier>public</modifier> <modifier>static</modifier> <type>bool</type><methodname>Locale::setDefault</methodname>
<modifier>public</modifier> <modifier>static</modifier> <type>true</type><methodname>Locale::setDefault</methodname>
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
</methodsynopsis>
<para>
&style.procedural;
</para>
<methodsynopsis>
<type>bool</type><methodname>locale_set_default</methodname>
<type>true</type><methodname>locale_set_default</methodname>
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
</methodsynopsis>
<para>