diff --git a/extension.json b/extension.json index 02a87c21..ce3d6376 100644 --- a/extension.json +++ b/extension.json @@ -11,7 +11,7 @@ "url": "https://www.mediawiki.org/wiki/Extension:InputBox", "descriptionmsg": "inputbox-desc", "requires": { - "MediaWiki": ">= 1.41" + "MediaWiki": ">= 1.42" }, "license-name": "MIT", "type": "parserhook", diff --git a/includes/InputBoxHooks.php b/includes/InputBoxHooks.php index b51f0f7b..050a3c8e 100644 --- a/includes/InputBoxHooks.php +++ b/includes/InputBoxHooks.php @@ -9,7 +9,7 @@ namespace MediaWiki\Extension\InputBox; use Article; -use MediaWiki; +use MediaWiki\Actions\ActionEntryPoint; use MediaWiki\Config\Config; use MediaWiki\Hook\MediaWikiPerformActionHook; use MediaWiki\Hook\ParserFirstCallInitHook; @@ -97,7 +97,7 @@ class InputBoxHooks implements * @param Title $title * @param User $user * @param WebRequest $request - * @param MediaWiki $wiki + * @param ActionEntryPoint $wiki * @return bool */ public function onMediaWikiPerformAction(