From ec4d1bed4d52b84cab29a56f584f4b650d1a9768 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 20 Aug 2023 01:21:38 +0200 Subject: [PATCH] Use namespaced MediaWiki\Page\PageProps Bug: T321681 Change-Id: I5298c09e2869a21e6616cb6e8917da51177c7987 --- includes/Hooks/SearchResultProvideThumbnailHookHandler.php | 2 +- .../Hooks/SearchResultProvideThumbnailHookHandlerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Hooks/SearchResultProvideThumbnailHookHandler.php b/includes/Hooks/SearchResultProvideThumbnailHookHandler.php index 5c39078..85fcae0 100644 --- a/includes/Hooks/SearchResultProvideThumbnailHookHandler.php +++ b/includes/Hooks/SearchResultProvideThumbnailHookHandler.php @@ -3,10 +3,10 @@ namespace PageImages\Hooks; use MediaWiki\Page\PageIdentity; +use MediaWiki\Page\PageProps; use MediaWiki\Search\Hook\SearchResultProvideThumbnailHook; use MediaWiki\Search\SearchResultThumbnailProvider; use PageImages\PageImages; -use PageProps; use RepoGroup; class SearchResultProvideThumbnailHookHandler implements SearchResultProvideThumbnailHook { diff --git a/tests/phpunit/Hooks/SearchResultProvideThumbnailHookHandlerTest.php b/tests/phpunit/Hooks/SearchResultProvideThumbnailHookHandlerTest.php index 7e722f8..794d391 100644 --- a/tests/phpunit/Hooks/SearchResultProvideThumbnailHookHandlerTest.php +++ b/tests/phpunit/Hooks/SearchResultProvideThumbnailHookHandlerTest.php @@ -5,11 +5,11 @@ namespace PageImages\Tests\Hooks; use LocalFile; use MediaWiki\Page\PageIdentity; use MediaWiki\Page\PageIdentityValue; +use MediaWiki\Page\PageProps; use MediaWiki\Search\SearchResultThumbnailProvider; use MediaWikiIntegrationTestCase; use PageImages\Hooks\SearchResultProvideThumbnailHookHandler; use PageImages\PageImages; -use PageProps; use PHPUnit\Framework\MockObject\Stub\ReturnCallback; use RepoGroup; use ThumbnailImage;