From: umherirrender Date: Thu, 3 Jul 2014 19:29:02 +0000 (+0200) Subject: Change some mixed @param docs in api classes X-Git-Tag: 1.31.0-rc.0~15037^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=0a06cbf00f81699f23b78a153c358142bf6f5c03;p=lhc%2Fweb%2Fwiklou.git Change some mixed @param docs in api classes Change-Id: I2ab4b0ae452325392c4ea72ab3d985107d429ac2 --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index d2217999b9..4f4d051a8c 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -1189,9 +1189,9 @@ abstract class ApiBase extends ContextSource { * @param mixed $value The value being parsed * @param bool $allowMultiple Can $value contain more than one value * separated by '|'? - * @param mixed $allowedValues An array of values to check against. If + * @param string[]|null $allowedValues An array of values to check against. If * null, all values are accepted. - * @return mixed (allowMultiple ? an_array_of_values : a_single_value) + * @return string|string[] (allowMultiple ? an_array_of_values : a_single_value) */ protected function parseMultiValue( $valueName, $value, $allowMultiple, $allowedValues ) { if ( trim( $value ) === '' && $allowMultiple ) { diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 2fd8597a80..fb882017b4 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -75,8 +75,8 @@ abstract class ApiQueryBase extends ApiBase { /** * Add a set of tables to the internal array - * @param mixed $tables Table name or array of table names - * @param mixed $alias Table alias, or null for no alias. Cannot be + * @param string|string[] $tables Table name or array of table names + * @param string|null $alias Table alias, or null for no alias. Cannot be * used with multiple tables */ protected function addTables( $tables, $alias = null ) { diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index e4078d513d..c35d39bc05 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -405,7 +405,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { /** * Extracts from a single sql row the data needed to describe one recent change. * - * @param mixed $row The row from which to extract the data. + * @param stdClass $row The row from which to extract the data. * @return array An array mapping strings (descriptors) to their respective string values. * @access public */ diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 24c4c205c4..5f93071fd2 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -326,7 +326,7 @@ class ApiQueryContributions extends ApiQueryBase { /** * Extract fields from the database row and append them to a result array * - * @param mixed $row + * @param stdClass $row * @return array */ private function extractRowInfo( $row ) {