From effea0bde6fce49108f35ad09c4c0e1de9f423e2 Mon Sep 17 00:00:00 2001 From: gerritbot Date: Sat, 19 Aug 2023 04:19:23 +0000 Subject: [PATCH] Replace some moved Title class uses, now MediaWiki\Title\Title Bug: T321681 Change-Id: I36f07ad64f90049b412969654cff0d3da31777e6 --- includes/BaseBlacklist.php | 2 +- includes/EmailBlacklist.php | 2 +- includes/SpamBlacklist.php | 2 +- maintenance/cleanup.php | 1 + tests/phpunit/BaseBlacklistTest.php | 1 + tests/phpunit/SpamBlacklistTest.php | 1 + 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/BaseBlacklist.php b/includes/BaseBlacklist.php index fb3f7249..24ac0065 100644 --- a/includes/BaseBlacklist.php +++ b/includes/BaseBlacklist.php @@ -5,9 +5,9 @@ namespace MediaWiki\Extension\SpamBlacklist; use Exception; use MediaWiki\MediaWikiServices; use MediaWiki\Revision\SlotRecord; +use MediaWiki\Title\Title; use ObjectCache; use TextContent; -use Title; use User; /** diff --git a/includes/EmailBlacklist.php b/includes/EmailBlacklist.php index eedbd53f..92aedb3b 100644 --- a/includes/EmailBlacklist.php +++ b/includes/EmailBlacklist.php @@ -3,7 +3,7 @@ namespace MediaWiki\Extension\SpamBlacklist; use LogicException; -use Title; +use MediaWiki\Title\Title; use User; use Wikimedia\AtEase\AtEase; diff --git a/includes/SpamBlacklist.php b/includes/SpamBlacklist.php index a87c9dad..7d9c6f4d 100644 --- a/includes/SpamBlacklist.php +++ b/includes/SpamBlacklist.php @@ -8,9 +8,9 @@ use ManualLogEntry; use MediaWiki\CheckUser\Hooks as CUHooks; use MediaWiki\ExternalLinks\ExternalLinksLookup; use MediaWiki\MediaWikiServices; +use MediaWiki\Title\Title; use ObjectCache; use RequestContext; -use Title; use User; use Wikimedia\AtEase\AtEase; use Wikimedia\Rdbms\Database; diff --git a/maintenance/cleanup.php b/maintenance/cleanup.php index 4b0b0491..e33f83b2 100644 --- a/maintenance/cleanup.php +++ b/maintenance/cleanup.php @@ -12,6 +12,7 @@ use MediaWiki\Page\WikiPageFactory; use MediaWiki\Revision\RevisionLookup; use MediaWiki\Revision\RevisionRecord; use MediaWiki\Revision\SlotRecord; +use MediaWiki\Title\Title; $IP = getenv( 'MW_INSTALL_PATH' ); if ( $IP === false ) { diff --git a/tests/phpunit/BaseBlacklistTest.php b/tests/phpunit/BaseBlacklistTest.php index 4fe32eb3..420b3077 100644 --- a/tests/phpunit/BaseBlacklistTest.php +++ b/tests/phpunit/BaseBlacklistTest.php @@ -20,6 +20,7 @@ */ use MediaWiki\Extension\SpamBlacklist\BaseBlacklist; +use MediaWiki\Title\Title; /** * @covers \MediaWiki\Extension\SpamBlacklist\BaseBlacklist diff --git a/tests/phpunit/SpamBlacklistTest.php b/tests/phpunit/SpamBlacklistTest.php index 4bc3cac3..00b757b3 100644 --- a/tests/phpunit/SpamBlacklistTest.php +++ b/tests/phpunit/SpamBlacklistTest.php @@ -4,6 +4,7 @@ use MediaWiki\EditPage\EditPage; use MediaWiki\Extension\SpamBlacklist\BaseBlacklist; use MediaWiki\Extension\SpamBlacklist\SpamBlacklist; use MediaWiki\MediaWikiServices; +use MediaWiki\Title\Title; /** * @group SpamBlacklist