From a69e18592254e5dee9d7b578388bf0bd103e82ff Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 25 Oct 2024 20:29:48 +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: I658a7bbdb5853e3d953e675db3cbd056cc020bfd --- includes/Api/ApiTitleBlacklist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Api/ApiTitleBlacklist.php b/includes/Api/ApiTitleBlacklist.php index 0bb7602e..fb85cfcc 100644 --- a/includes/Api/ApiTitleBlacklist.php +++ b/includes/Api/ApiTitleBlacklist.php @@ -24,6 +24,7 @@ namespace MediaWiki\Extension\TitleBlacklist\Api; use MediaWiki\Api\ApiBase; +use MediaWiki\Api\ApiMain; use MediaWiki\Extension\TitleBlacklist\TitleBlacklist; use MediaWiki\Extension\TitleBlacklist\TitleBlacklistEntry; use MediaWiki\Title\Title; @@ -37,7 +38,7 @@ use Wikimedia\ParamValidator\ParamValidator; */ class ApiTitleBlacklist extends ApiBase { - public function __construct( $mainModule, $moduleName ) { + public function __construct( ApiMain $mainModule, string $moduleName ) { parent::__construct( $mainModule, $moduleName, 'tb' ); }