From: Siebrand Mazeland Date: Sat, 16 Nov 2013 21:15:17 +0000 (+0100) Subject: Update docs to reduce inconsistent type compatibility in api/ X-Git-Tag: 1.31.0-rc.0~18073 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22lang_raccourcis%22%2C%22module=%24nom_module%22%29%20.%20%22?a=commitdiff_plain;h=f8f3ddea50e6e5382bd06dff0c975ca4d7c56d29;p=lhc%2Fweb%2Fwiklou.git Update docs to reduce inconsistent type compatibility in api/ Change-Id: Iaf97aeb514ddb2176491c3820fe891be8e989939 --- diff --git a/includes/Title.php b/includes/Title.php index 09c5a3a1d5..4b8a141c55 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -273,7 +273,7 @@ class Title { /** * Make a Title object from a DB row * - * @param $row Object database row (needs at least page_title,page_namespace) + * @param stdClass $row Object database row (needs at least page_title,page_namespace) * @return Title corresponding Title */ public static function newFromRow( $row ) { @@ -286,7 +286,7 @@ class Title { * Load Title object fields from a DB row. * If false is given, the title will be treated as non-existing. * - * @param $row Object|bool database row + * @param $row stdClass|bool database row */ public function loadFromRow( $row ) { if ( $row ) { // page found diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index c301e9eb72..9b099569f6 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -858,7 +858,7 @@ class ApiMain extends ApiBase { /** * Log the preceding request - * @param $time Time in seconds + * @param int $time Time in seconds */ protected function logRequest( $time ) { $request = $this->getRequest(); diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 6c4bb08634..e95e680b03 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -593,7 +593,7 @@ class ApiPageSet extends ApiBase { /** * Extract all requested fields from the row received from the database - * @param $row Result row + * @param stdClass $row Result row */ public function processDbRow( $row ) { // Store Title object in various data structures