diff --git a/extension.json b/extension.json index 6270e2bc..4e27d8fa 100644 --- a/extension.json +++ b/extension.json @@ -10,7 +10,7 @@ "descriptionmsg": "linter-desc", "type": "specialpage", "requires": { - "MediaWiki": ">= 1.41" + "MediaWiki": ">= 1.42" }, "AutoloadNamespaces": { "MediaWiki\\Linter\\": "includes/" diff --git a/includes/Hooks.php b/includes/Hooks.php index 3fb41170..06a198ed 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -24,21 +24,21 @@ use ApiQuerySiteinfo; use Content; use IContextSource; use MediaWiki\Api\Hook\APIQuerySiteInfoGeneralInfoHook; +use MediaWiki\Deferred\MWCallableUpdate; use MediaWiki\Hook\BeforePageDisplayHook; use MediaWiki\Hook\InfoActionHook; use MediaWiki\Hook\ParserLogLinterDataHook; use MediaWiki\Linker\LinkRenderer; use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; +use MediaWiki\Output\OutputPage; use MediaWiki\Page\Hook\RevisionFromEditCompleteHook; use MediaWiki\Page\Hook\WikiPageDeletionUpdatesHook; use MediaWiki\Revision\RevisionRecord; +use MediaWiki\SpecialPage\SpecialPage; use MediaWiki\Title\Title; use MediaWiki\User\UserIdentity; -use MWCallableUpdate; -use OutputPage; use Skin; -use SpecialPage; use WikiPage; class Hooks implements diff --git a/includes/LintErrorsPager.php b/includes/LintErrorsPager.php index 9769fad4..39dd014b 100644 --- a/includes/LintErrorsPager.php +++ b/includes/LintErrorsPager.php @@ -20,15 +20,15 @@ namespace MediaWiki\Linter; -use Html; use IContextSource; use InvalidArgumentException; use LinkCache; +use MediaWiki\Html\Html; use MediaWiki\Linker\LinkRenderer; use MediaWiki\MediaWikiServices; +use MediaWiki\Pager\TablePager; use MediaWiki\Title\Title; -use TablePager; -use TitleValue; +use MediaWiki\Title\TitleValue; use Wikimedia\Rdbms\IExpression; use Wikimedia\Rdbms\LikeValue; use Wikimedia\Rdbms\SelectQueryBuilder; diff --git a/includes/SpecialLintErrors.php b/includes/SpecialLintErrors.php index 24b93e2b..5de50415 100644 --- a/includes/SpecialLintErrors.php +++ b/includes/SpecialLintErrors.php @@ -21,12 +21,12 @@ namespace MediaWiki\Linter; use HTMLForm; -use MalformedTitleException; use MediaWiki\Html\Html; use MediaWiki\MediaWikiServices; -use OutputPage; -use SpecialPage; -use WebRequest; +use MediaWiki\Output\OutputPage; +use MediaWiki\Request\WebRequest; +use MediaWiki\SpecialPage\SpecialPage; +use MediaWiki\Title\MalformedTitleException; class SpecialLintErrors extends SpecialPage {