svn: /phpdoc/doc-base/trunk/ howto/working.xml scripts/build-chms.php scripts/check-references.php
| From: | Jakub Vrana | Date: | Mon, 12 Mar 2012 05:58:15 +0000 |
| Subject: | svn: /phpdoc/doc-base/trunk/ howto/working.xml scripts/build-chms.php scripts/check-references.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9862@lists.php.net to get a copy of this message | ||
vrana Mon, 12 Mar 2012 05:58:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=324123
Log:
Use callable type hint introduced by PHP 5.4
Changed paths:
U phpdoc/doc-base/trunk/howto/working.xml
U phpdoc/doc-base/trunk/scripts/build-chms.php
U phpdoc/doc-base/trunk/scripts/check-references.php
Modified: phpdoc/doc-base/trunk/howto/working.xml
===================================================================
--- phpdoc/doc-base/trunk/howto/working.xml 2012-03-12 05:55:59 UTC (rev 324122)
+++ phpdoc/doc-base/trunk/howto/working.xml 2012-03-12 05:58:15 UTC (rev 324123)
@@ -308,7 +308,7 @@
In prototypes, you can also use <literal>mixed</literal>
(various types), or <literal>number</literal> (either
integer or float). A callback is denoted as
- <literal>callback</literal>.
+ <literal>callable</literal>.
</simpara>
<simpara>
@@ -853,7 +853,7 @@
<row>
<entry>theini_option</entry>
<entry>itsvalue</entry>
- <entry>its PHP_INI_* value</entry>
+ <entry>its INI_* value</entry>
<entry>leave this blank. it will be filled automatically</entry>
</row>
</tbody>
Modified: phpdoc/doc-base/trunk/scripts/build-chms.php
===================================================================
--- phpdoc/doc-base/trunk/scripts/build-chms.php 2012-03-12 05:55:59 UTC (rev 324122)
+++ phpdoc/doc-base/trunk/scripts/build-chms.php 2012-03-12 05:58:15 UTC (rev 324123)
@@ -301,7 +301,7 @@
* Removes all files within a directory and then
* deletes the directory
*
- * @param callback Callback to the apply function
+ * @param callable Callback to the apply function
* @param string Glob directory to begin
* @param string (optional) The glob pattern to match on
* @return void No value is returned
Modified: phpdoc/doc-base/trunk/scripts/check-references.php
===================================================================
--- phpdoc/doc-base/trunk/scripts/check-references.php 2012-03-12 05:55:59 UTC (rev 324122)
+++ phpdoc/doc-base/trunk/scripts/check-references.php 2012-03-12 05:58:15 UTC (rev 324123)
@@ -104,7 +104,7 @@
"H" => "array",
"U" => "unicode",
"S" => "string",
- "f" => "callback",
+ "f" => "callable",
"x" => "string",
"T" => "unicode",
@@ -414,7 +414,7 @@
echo "Wrong return type in $filename on line $lineno.\n";
echo $return_types[$function_name][1] . ":" . $return_types[$function_name][2] .
": " . $return_types[$function_name][0] . "\n";
}
- } elseif (preg_match("~<type>(callback|$invalid_types)</type>~",
$return_type)) {
+ } elseif (preg_match("~<type>($invalid_types)</type>~", $return_type)) {
echo "Wrong return type in $filename on line $lineno.\n";
}