svn: /phpdoc/ja/trunk/reference/classobj/functions/ method-exists.xml
| From: | Yoshinari Takaoka | Date: | Wed, 18 Nov 2020 22:18:39 +0000 |
| Subject: | svn: /phpdoc/ja/trunk/reference/classobj/functions/ method-exists.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-5767@lists.php.net to get a copy of this message | ||
mumumu Wed, 18 Nov 2020 22:18:39 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=351434
Log:
Reflect PHP 8 typehint in method_exists
This type specification is also appropriate for PHP 7.
Based on patch contributed by Ian Littman <iansltx@gmail.com>.
Changed paths:
U phpdoc/ja/trunk/reference/classobj/functions/method-exists.xml
Modified: phpdoc/ja/trunk/reference/classobj/functions/method-exists.xml
===================================================================
--- phpdoc/ja/trunk/reference/classobj/functions/method-exists.xml 2020-11-18 22:16:15 UTC (rev
351433)
+++ phpdoc/ja/trunk/reference/classobj/functions/method-exists.xml 2020-11-18 22:18:39 UTC (rev
351434)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 308016 Maintainer: hirokawa Status: ready -->
-<!-- CREDITS: shimooka -->
+<!-- EN-Revision: 351409 Maintainer: hirokawa Status: ready -->
+<!-- CREDITS: shimooka,mumumu -->
<refentry xml:id="function.method-exists" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>method_exists</refname>
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>method_exists</methodname>
-
<methodparam><type>mixed</type><parameter>object</parameter></methodparam>
+ <methodparam><type
class="union"><type>string</type><type>object</type></type><parameter>object</parameter></methodparam>
<methodparam><type>string</type><parameter>method_name</parameter></methodparam>
</methodsynopsis>
<para>