From 4bc5e7ed8f7e66292adeed75997f422e0bd018ac Mon Sep 17 00:00:00 2001 From: gerritbot Date: Sat, 19 Aug 2023 04:14:21 +0000 Subject: [PATCH] Replace some moved Title class uses, now MediaWiki\Title\Title Bug: T321681 Change-Id: I639a03a5f828d7036e29a11a8a45d8d1e8923590 --- SimpleCaptcha/SimpleCaptcha.php | 2 +- includes/Hooks.php | 2 +- tests/phpunit/HTMLFancyCaptchaFieldTest.php | 1 + tests/phpunit/HTMLReCaptchaNoCaptchaFieldTest.php | 1 + tests/phpunit/SimpleCaptcha/CaptchaTest.php | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SimpleCaptcha/SimpleCaptcha.php b/SimpleCaptcha/SimpleCaptcha.php index 1551a22c5..451b2d17c 100644 --- a/SimpleCaptcha/SimpleCaptcha.php +++ b/SimpleCaptcha/SimpleCaptcha.php @@ -26,6 +26,7 @@ use MediaWiki\Request\ContentSecurityPolicy; use MediaWiki\Revision\RevisionAccessException; use MediaWiki\Revision\RevisionLookup; use MediaWiki\Revision\SlotRecord; +use MediaWiki\Title\Title; use MediaWiki\User\UserNameUtils; use Message; use ObjectCache; @@ -37,7 +38,6 @@ use ParserOptions; use RequestContext; use Status; use TextContent; -use Title; use UnexpectedValueException; use User; use WebRequest; diff --git a/includes/Hooks.php b/includes/Hooks.php index a3d0a3d34..f3709a674 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -28,13 +28,13 @@ use MediaWiki\Revision\RevisionRecord; use MediaWiki\SpecialPage\Hook\AuthChangeFormFieldsHook; use MediaWiki\Storage\EditResult; use MediaWiki\Storage\Hook\PageSaveCompleteHook; +use MediaWiki\Title\Title; use MediaWiki\User\UserIdentity; use MessageSpecifier; use OutputPage; use ParserOutput; use SpecialPage; use Status; -use Title; use User; use Wikimedia\IPUtils; use WikiPage; diff --git a/tests/phpunit/HTMLFancyCaptchaFieldTest.php b/tests/phpunit/HTMLFancyCaptchaFieldTest.php index 56de7dde7..faf42da33 100644 --- a/tests/phpunit/HTMLFancyCaptchaFieldTest.php +++ b/tests/phpunit/HTMLFancyCaptchaFieldTest.php @@ -2,6 +2,7 @@ use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\HTMLFancyCaptchaField; use MediaWiki\Request\FauxRequest; +use MediaWiki\Title\Title; /** * @covers \MediaWiki\Extension\ConfirmEdit\FancyCaptcha\HTMLFancyCaptchaField diff --git a/tests/phpunit/HTMLReCaptchaNoCaptchaFieldTest.php b/tests/phpunit/HTMLReCaptchaNoCaptchaFieldTest.php index 4a80af796..bc014b165 100644 --- a/tests/phpunit/HTMLReCaptchaNoCaptchaFieldTest.php +++ b/tests/phpunit/HTMLReCaptchaNoCaptchaFieldTest.php @@ -2,6 +2,7 @@ use MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\HTMLReCaptchaNoCaptchaField; use MediaWiki\Request\FauxRequest; +use MediaWiki\Title\Title; /** * @covers \MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\HTMLReCaptchaNoCaptchaField diff --git a/tests/phpunit/SimpleCaptcha/CaptchaTest.php b/tests/phpunit/SimpleCaptcha/CaptchaTest.php index 7d02ebe63..f9b7963bd 100644 --- a/tests/phpunit/SimpleCaptcha/CaptchaTest.php +++ b/tests/phpunit/SimpleCaptcha/CaptchaTest.php @@ -2,6 +2,7 @@ use MediaWiki\Extension\ConfirmEdit\CaptchaTriggers; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; +use MediaWiki\Title\Title; use Wikimedia\ScopedCallback; /**