From c64fc2f38078e978132544e7082facea20e44fb6 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 27 Dec 2013 13:56:52 +0100 Subject: [PATCH] Update documentation related to newFromRow and formatRow Change-Id: I65e5923c4dc3a63bd9cdbbc5fdcb572ab0cb9cae --- includes/Pager.php | 2 +- includes/User.php | 2 +- includes/logging/LogEntry.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Pager.php b/includes/Pager.php index 19c3c43fb0..6a10e887fe 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -659,7 +659,7 @@ abstract class IndexPager extends ContextSource implements Pager { * representing the result row $row. Rows will be concatenated and * returned by getBody() * - * @param array $row Database row + * @param array|stdClass $row Database row * @return string */ abstract function formatRow( $row ); diff --git a/includes/User.php b/includes/User.php index e7c5a326f4..43128fa5e1 100644 --- a/includes/User.php +++ b/includes/User.php @@ -465,7 +465,7 @@ class User { * user_name and user_real_name are not provided because the whole row * will be loaded once more from the database when accessing them. * - * @param array $row A row from the user table + * @param stdClass $row A row from the user table * @param array $data Further data to load into the object (see User::loadFromRow for valid keys) * @return User */ diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index a72540278f..76c2280cd0 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -157,7 +157,7 @@ class DatabaseLogEntry extends LogEntryBase { /** * Constructs new LogEntry from database result row. * Supports rows from both logging and recentchanges table. - * @param $row + * @param stdClass|array $row * @return DatabaseLogEntry */ public static function newFromRow( $row ) { -- 2.20.1