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
This commit is contained in:
Umherirrender 2024-10-25 20:29:48 +02:00
parent a6482646f1
commit a69e185922

View file

@ -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' );
}