diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 6f196c9..7427458 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -13,8 +13,8 @@ use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; use MediaWiki\Page\WikiPageFactory; use MediaWiki\Request\FauxRequest; +use MediaWiki\Title\Title; use ParserOptions; -use Title; use WANObjectCache; use Wikimedia\ParamValidator\ParamValidator; use WikiPage; diff --git a/tests/phpunit/ApiQueryExtractsTest.php b/tests/phpunit/ApiQueryExtractsTest.php index a9ca5dc..f2ab143 100644 --- a/tests/phpunit/ApiQueryExtractsTest.php +++ b/tests/phpunit/ApiQueryExtractsTest.php @@ -4,6 +4,7 @@ namespace TextExtracts\Test; use ILanguageConverter; use MediaWiki\Languages\LanguageConverterFactory; +use MediaWiki\Title\Title; use MediaWikiCoversValidator; use TextExtracts\ApiQueryExtracts; use Wikimedia\LightweightObjectStore\ExpirationAwareness; @@ -68,7 +69,7 @@ class ApiQueryExtractsTest extends \MediaWikiIntegrationTestCase { } public function testMemCacheHelpers() { - $title = $this->createMock( \Title::class ); + $title = $this->createMock( Title::class ); $title->method( 'getPageLanguage' ) ->willReturn( $this->createMock( \Language::class ) );