From 4c3bc3f865774af2cd24d07e11410d70539fb8a2 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 16 Nov 2013 22:19:42 +0100 Subject: [PATCH] Add/update/remove incomplete/incorrect documentation Change-Id: I3c2c7f61d9a579ad794ce7b564ccc8a7cfb9b6fc --- includes/api/ApiBase.php | 3 ++- includes/api/ApiQueryImageInfo.php | 2 +- includes/api/ApiQueryLinks.php | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index f776e6d447..c2b942aa78 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -1239,7 +1239,7 @@ abstract class ApiBase extends ContextSource { * * @since 1.22 * @param Status $status Status object - * @throws UsageException + * @throws MWException */ public function dieStatus( $status ) { if ( $status->isGood() ) { @@ -1519,6 +1519,7 @@ abstract class ApiBase extends ContextSource { * Internal code errors should be reported with this method * @param string $method Method or function name * @param string $message Error message + * @throws MWException */ protected static function dieDebug( $method, $message ) { throw new MWException( "Internal error in $method: $message" ); diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 9981ec1213..91a9a7d59c 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -310,7 +310,7 @@ class ApiQueryImageInfo extends ApiQueryBase { * @param array $prop of properties to get (in the keys) * @param $result ApiResult object * @param array $thumbParams containing 'width' and 'height' items, or null - * @param string|array $metadataOpts Options for metadata fetching. + * @param array|bool|string $metadataOpts Options for metadata fetching. * This is an array consisting of the keys: * 'version': The metadata version for the metadata option * 'language': The language for extmetadata property diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 3157a7bb16..1eecbe2e09 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -76,8 +76,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { } /** - * @param $resultPageSet ApiPageSet - * @return + * @param ApiPageSet $resultPageSet */ private function run( $resultPageSet = null ) { if ( $this->getPageSet()->getGoodTitleCount() == 0 ) { -- 2.20.1