From 5e77fefa8ff2f8ee1568ee4d46084e2e7feea08b Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 25 Oct 2024 20:28:11 +0200 Subject: [PATCH] Use type-declaration on api module constructor Parent class constructor gets type-declaration in 1145328459 Remove simple doc-blocks without further information Change-Id: Idc3752caae29da4eaed37da3fd2dc5ad813f74f2 --- includes/ApiQueryExtracts.php | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 675698f..b647fba 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -36,22 +36,10 @@ class ApiQueryExtracts extends ApiQueryBase { */ private $params; - /** - * @var Config - */ - private $config; - /** - * @var WANObjectCache - */ - private $cache; - /** - * @var LanguageConverterFactory - */ - private $langConvFactory; - /** - * @var WikiPageFactory - */ - private $wikiPageFactory; + private Config $config; + private WANObjectCache $cache; + private LanguageConverterFactory $langConvFactory; + private WikiPageFactory $wikiPageFactory; private TitleFormatter $titleFormatter; // TODO: Allow extensions to hook into this to opt-in. @@ -61,18 +49,9 @@ class ApiQueryExtracts extends ApiQueryBase { */ private $supportedContentModels = [ 'wikitext' ]; - /** - * @param ApiQuery $query API query module object - * @param string $moduleName Name of this query module - * @param ConfigFactory $configFactory - * @param WANObjectCache $cache - * @param LanguageConverterFactory $langConvFactory - * @param WikiPageFactory $wikiPageFactory - * @param TitleFormatter $titleFormatter - */ public function __construct( - $query, - $moduleName, + ApiQuery $query, + string $moduleName, ConfigFactory $configFactory, WANObjectCache $cache, LanguageConverterFactory $langConvFactory,