Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4045459
D25981.1746733648.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
6 KB
Referenced Files
None
Subscribers
None
D25981.1746733648.diff
View Options
diff --git a/src/error/phlog.php b/src/error/phlog.php
--- a/src/error/phlog.php
+++ b/src/error/phlog.php
@@ -7,7 +7,7 @@
*
* @param wild $value Any value you want printed to the error log or other
* registered logs/consoles.
- * @param ... Other values to be logged.
+ * @param wild $value,... Other values to be logged.
* @return wild Passed $value.
*/
function phlog($value/* , ... */) {
diff --git a/src/future/exec/execx.php b/src/future/exec/execx.php
--- a/src/future/exec/execx.php
+++ b/src/future/exec/execx.php
@@ -7,9 +7,9 @@
*
* list ($stdout, $stderr) = execx('ls %s', $file);
*
- * @param string $cmd sprintf()-style command pattern to execute.
- * @param ... Arguments to sprintf pattern.
- * @return array List of stdout and stderr.
+ * @param string $cmd sprintf()-style command pattern to execute.
+ * @param string $args,... Arguments to sprintf pattern.
+ * @return array List of stdout and stderr.
*/
function execx($cmd /* , ... */) {
$args = func_get_args();
@@ -27,9 +27,9 @@
* Error flows can often be simplified by using @{function:execx} instead,
* which throws an exception when it encounters an error.
*
- * @param string $cmd sprintf()-style command pattern to execute.
- * @param ... Arguments to sprintf pattern.
- * @return array List of return code, stdout, and stderr.
+ * @param string $cmd sprintf()-style command pattern to execute.
+ * @param string $args,... Arguments to sprintf pattern.
+ * @return array List of return code, stdout, and stderr.
*/
function exec_manual($cmd /* , ... */) {
$args = func_get_args();
@@ -41,9 +41,9 @@
/**
* Wrapper for @{class:PhutilExecPassthru}.
*
- * @param string $cmd sprintf()-style command pattern to execute.
- * @param ... Arguments to sprintf pattern.
- * @return int Return code.
+ * @param string $cmd sprintf()-style command pattern to execute.
+ * @param string $args,... Arguments to sprintf pattern.
+ * @return int Return code.
*/
function phutil_passthru($cmd /* , ... */) {
$args = func_get_args();
diff --git a/src/internationalization/pht.php b/src/internationalization/pht.php
--- a/src/internationalization/pht.php
+++ b/src/internationalization/pht.php
@@ -9,7 +9,7 @@
* @param string $text Translation identifier with `sprintf()` placeholders.
* @param mixed $variant (optional) Value to select the variant from (e.g.
* singular or plural). Defaults to null.
- * @param ... Next values referenced from $text.
+ * @param mixed $variant,... Next values referenced from $text.
* @return string Translated string with substituted values.
*/
function pht($text, $variant = null /* , ... */) {
diff --git a/src/repository/api/ArcanistMercurialAPI.php b/src/repository/api/ArcanistMercurialAPI.php
--- a/src/repository/api/ArcanistMercurialAPI.php
+++ b/src/repository/api/ArcanistMercurialAPI.php
@@ -1090,7 +1090,7 @@
* @param string $extension The name of the extension to enable.
* @param string $pattern The command pattern that will be run with the
* extension enabled.
- * @param array ... Parameters for the command pattern argument.
+ * @param array $params,... Parameters for the command pattern argument.
* @return array An array where the first item is a Mercurial command
* pattern that includes the necessary flag for enabling the
* desired extension, and all remaining items are parameters
diff --git a/src/utils/utils.php b/src/utils/utils.php
--- a/src/utils/utils.php
+++ b/src/utils/utils.php
@@ -307,7 +307,7 @@
* @param string $by Name of a method, like 'getType', to call on each
* object in order to determine which group it should be
* placed into.
- * @param ... (optional) Zero or more additional method names, to
+ * @param string $methods,... Zero or more additional method names, to
* subgroup the groups.
* @return dict Dictionary mapping distinct method returns to lists of
* all objects which returned that value.
@@ -347,7 +347,7 @@
* @param list $list List of arrays to group by some index value.
* @param string $by Name of an index to select from each array in order to
* determine which group it should be placed into.
- * @param ... (optional) Zero or more additional indexes names, to
+ * @param string $methods,... Zero or more additional indexes names, to
* subgroup the groups.
* @return dict Dictionary mapping distinct index values to lists of
* all objects which had that value at the index.
@@ -729,7 +729,7 @@
* Returns the first argument which is not strictly null, or `null` if there
* are no such arguments. Identical to the MySQL function of the same name.
*
- * @param ... Zero or more arguments of any type.
+ * @param mixed $args,... Zero or more arguments of any type.
* @return mixed First non-`null` arg, or null if no such arg exists.
*/
function coalesce(/* ... */) {
@@ -751,7 +751,7 @@
*
* $display_name = nonempty($user_name, $full_name, "Anonymous");
*
- * @param ... Zero or more arguments of any type.
+ * @param mixed $args,... Zero or more arguments of any type.
* @return mixed First non-`empty()` arg, or last arg if no such arg
* exists, or null if you passed in zero args.
*/
diff --git a/src/xsprintf/csprintf.php b/src/xsprintf/csprintf.php
--- a/src/xsprintf/csprintf.php
+++ b/src/xsprintf/csprintf.php
@@ -28,7 +28,7 @@
* than by calling @{function:csprintf} directly.
*
* @param string $pattern sprintf()-style format string.
- * @param ... Zero or more arguments.
+ * @param string $args,... Zero or more arguments.
* @return PhutilCommandString Formatted string, escaped appropriately for
* shell contexts.
*/
diff --git a/src/xsprintf/pregsprintf.php b/src/xsprintf/pregsprintf.php
--- a/src/xsprintf/pregsprintf.php
+++ b/src/xsprintf/pregsprintf.php
@@ -10,8 +10,8 @@
* Inserts a raw regular expression.
*
* @param string $pattern sprintf()-style format string.
- * @param string (optional) Flags to use with the regular expression.
- * @param ... (optional) Zero or more arguments.
+ * @param string $args,... (optional) Flags to use with the regular
+ * expression.
* @return string Formatted string.
*/
function pregsprintf($pattern /* , ... */) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 8, 19:47 (1 h, 49 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1462473
Default Alt Text
D25981.1746733648.diff (6 KB)
Attached To
Mode
D25981: PHPDoc: Correct syntax of variadic function params
Attached
Detach File
Event Timeline
Log In to Comment