svn: /phpdoc/en/trunk/reference/var/functions/ is-callable.xml
| From: | Christoph Michael Becker | Date: | Sat, 15 Aug 2015 16:55:15 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/var/functions/ is-callable.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13598@lists.php.net to get a copy of this message | ||
cmb Sat, 15 Aug 2015 16:55:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337489
Log:
Documentation updated for consistency with the other is_*() type-checking functions: the first
parameter is not strictly a callable, it's any value (mixed), since this function (consistent
with other is_*() functions) is used not only to check if a callable can actually be called (as per
the second argument) but also for basic type-checking to see if the given value represents something
that might possibly be callable at all.
--
Provided by anonymous 61891 (rasmus@mindplay.dk)
Changed paths:
U phpdoc/en/trunk/reference/var/functions/is-callable.xml
Modified: phpdoc/en/trunk/reference/var/functions/is-callable.xml
===================================================================
--- phpdoc/en/trunk/reference/var/functions/is-callable.xml 2015-08-15 16:52:51 UTC (rev 337488)
+++ phpdoc/en/trunk/reference/var/functions/is-callable.xml 2015-08-15 16:55:15 UTC (rev 337489)
@@ -12,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>is_callable</methodname>
-
<methodparam><type>callable</type><parameter>name</parameter></methodparam>
+
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
<methodparam
choice="opt"><type>bool</type><parameter>syntax_only</parameter><initializer>false</initializer></methodparam>
<methodparam choice="opt"><type>string</type><parameter
role="reference">callable_name</parameter></methodparam>
</methodsynopsis>
@@ -29,10 +29,10 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>name</parameter></term>
+ <term><parameter>var</parameter></term>
<listitem>
<para>
- The callback function to check
+ The value to check
</para>
</listitem>
</varlistentry>
@@ -67,7 +67,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns &true; if <parameter>name</parameter> is callable, &false;
+ Returns &true; if <parameter>var</parameter> is callable, &false;
otherwise.
</para>
</refsect1>