Fix mixed return type declarations and parameters of Misc. Functions (#942)

This commit is contained in:
Alexander Pas 2021-09-21 13:11:43 +02:00 committed by GitHub
parent 268d48a184
commit 3c699fad2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View file

@ -9,8 +9,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>get_browser</methodname>
<methodparam choice="opt"><type>string</type><parameter>user_agent</parameter></methodparam>
<type class="union"><type>object</type><type>array</type><type>false</type></type><methodname>get_browser</methodname>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>user_agent</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>return_array</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<para>
@ -65,6 +65,11 @@
cookies are accepted is to set one with <function>setcookie</function>,
reload, and check for the value.
</para>
<para>
Returns &false; when no information can be retrieved, such as when the
<link linkend="ini.browscap">browscap</link> configuration setting in
&php.ini; has not been set.
</para>
</refsect1>
<refsect1 role="examples">

View file

@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>highlight_file</methodname>
<type class="union"><type>string</type><type>bool</type></type><methodname>highlight_file</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>

View file

@ -9,8 +9,8 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>highlight_string</methodname>
<methodparam><type>string</type><parameter>str</parameter></methodparam>
<type class="union"><type>string</type><type>bool</type></type><methodname>highlight_string</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
<simpara>
@ -24,7 +24,7 @@
<para>
<variablelist>
<varlistentry>
<term><parameter>str</parameter></term>
<term><parameter>string</parameter></term>
<listitem>
<para>
The PHP code to be highlighted. This should include the opening tag.