From 54dd80cc2f6ccefad173d3f06b0ef7894b5dc75e Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 17 Nov 2013 20:04:13 +0100 Subject: [PATCH] Update documentation for ApiDelete::deleteFile() WikiPage was no longer valid given the current type hint. Added types and documentation where missing. Change-Id: Ie0a3a8fff3ad496b723958133867df48a695d3b7 --- includes/api/ApiDelete.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 21264bcbb1..fe5a196902 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -127,12 +127,12 @@ class ApiDelete extends ApiBase { } /** - * @param $page WikiPage|Page object to work on - * @param $user User doing the action - * @param $token - * @param $oldimage - * @param $reason - * @param $suppress bool + * @param Page $page Object to work on + * @param User $user User doing the action + * @param string $token Delete token (same as edit token) + * @param string $oldimage Archive name + * @param string $reason Reason for the deletion. Autogenerated if null. + * @param bool $suppress Whether to mark all deleted versions as restricted * @return Status|array */ public static function deleteFile( Page $page, User $user, $token, $oldimage, &$reason = null, $suppress = false ) { -- 2.20.1