From f8f3ddea50e6e5382bd06dff0c975ca4d7c56d29 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 16 Nov 2013 22:15:17 +0100 Subject: [PATCH] Update docs to reduce inconsistent type compatibility in api/ Change-Id: Iaf97aeb514ddb2176491c3820fe891be8e989939 --- includes/Title.php | 4 ++-- includes/api/ApiMain.php | 2 +- includes/api/ApiPageSet.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.20.1