aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api')
-rw-r--r--includes/api/ApiBase.php4
-rw-r--r--includes/api/ApiDelete.php4
-rw-r--r--includes/api/ApiParamInfo.php2
-rw-r--r--includes/api/ApiQueryBase.php2
-rw-r--r--includes/api/ApiQueryLogEvents.php2
5 files changed, 7 insertions, 7 deletions
diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php
index 500f4324dff1..81696e03489d 100644
--- a/includes/api/ApiBase.php
+++ b/includes/api/ApiBase.php
@@ -1432,7 +1432,7 @@ abstract class ApiBase extends ContextSource {
* Validate the value against the minimum and user/bot maximum limits.
* Prints usage info on failure.
* @param string $paramName Parameter name
- * @param int $value Parameter value
+ * @param int &$value Parameter value
* @param int|null $min Minimum value
* @param int|null $max Maximum value for users
* @param int $botMax Maximum value for sysops/bots
@@ -1599,7 +1599,7 @@ abstract class ApiBase extends ContextSource {
/**
* Truncate an array to a certain length.
- * @param array $arr Array to truncate
+ * @param array &$arr Array to truncate
* @param int $limit Maximum length
* @return bool True if the array was truncated, false otherwise
*/
diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php
index 72bbe0048289..7766acd36369 100644
--- a/includes/api/ApiDelete.php
+++ b/includes/api/ApiDelete.php
@@ -106,7 +106,7 @@ class ApiDelete extends ApiBase {
*
* @param Page|WikiPage $page Page or WikiPage object to work on
* @param User $user User doing the action
- * @param string|null $reason Reason for the deletion. Autogenerated if null
+ * @param string|null &$reason Reason for the deletion. Autogenerated if null
* @param array $tags Tags to tag the deletion with
* @return Status
*/
@@ -142,7 +142,7 @@ class ApiDelete extends ApiBase {
* @param Page $page Object to work on
* @param User $user User doing the action
* @param string $oldimage Archive name
- * @param string $reason Reason for the deletion. Autogenerated if null.
+ * @param string &$reason Reason for the deletion. Autogenerated if null.
* @param bool $suppress Whether to mark all deleted versions as restricted
* @param array $tags Tags to tag the deletion with
* @return Status
diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php
index 4ce0e9f108da..17b00933a19d 100644
--- a/includes/api/ApiParamInfo.php
+++ b/includes/api/ApiParamInfo.php
@@ -184,7 +184,7 @@ class ApiParamInfo extends ApiBase {
}
/**
- * @param array $res Result array
+ * @param array &$res Result array
* @param string $key Result key
* @param Message[] $msgs
* @param bool $joinLists
diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php
index f8eaa840740f..44526e88b1e4 100644
--- a/includes/api/ApiQueryBase.php
+++ b/includes/api/ApiQueryBase.php
@@ -478,7 +478,7 @@ abstract class ApiQueryBase extends ApiBase {
/**
* Add information (title and namespace) about a Title object to a
* result array
- * @param array $arr Result array à la ApiResult
+ * @param array &$arr Result array à la ApiResult
* @param Title $title
* @param string $prefix Module prefix
*/
diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php
index df8a11ee8bca..3e8bccc74daa 100644
--- a/includes/api/ApiQueryLogEvents.php
+++ b/includes/api/ApiQueryLogEvents.php
@@ -242,7 +242,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
/**
* @deprecated since 1.25 Use LogFormatter::formatParametersForApi instead
* @param ApiResult $result
- * @param array $vals
+ * @param array &$vals
* @param string $params
* @param string $type
* @param string $action