From: Siebrand Mazeland Date: Fri, 27 Dec 2013 12:56:52 +0000 (+0100) Subject: Update documentation related to newFromRow and formatRow X-Git-Tag: 1.31.0-rc.0~17479^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=c64fc2f38078e978132544e7082facea20e44fb6;p=lhc%2Fweb%2Fwiklou.git Update documentation related to newFromRow and formatRow Change-Id: I65e5923c4dc3a63bd9cdbbc5fdcb572ab0cb9cae --- 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 ) {