jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/337222 )
Change subject: Type hint TermSearchInteractor interface in SearchHookHandler
......................................................................
Type hint TermSearchInteractor interface in SearchHookHandler
Instead of the actual implementation.
This fixes a test failure caused by the actual instance passed into
changing.
Change-Id: Ibcdaf47c28fb1cdae747fa81bdbe0a942e3e1b91
---
M includes/SearchHookHandler.php
1 file changed, 4 insertions(+), 4 deletions(-)
Approvals:
Addshore: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/SearchHookHandler.php b/includes/SearchHookHandler.php
index 776061d..4932dab 100644
--- a/includes/SearchHookHandler.php
+++ b/includes/SearchHookHandler.php
@@ -8,7 +8,7 @@
use Liuggio\StatsdClient\Factory\StatsdDataFactory;
use MediaWiki\MediaWikiServices;
use Wikibase\Client\WikibaseClient;
-use Wikibase\Lib\Interactors\TermIndexSearchInteractor;
+use Wikibase\Lib\Interactors\TermSearchInteractor;
use Wikibase\Lib\Interactors\TermSearchResult;
use Wikibase\TermIndex;
use Wikibase\TermIndexEntry;
@@ -28,7 +28,7 @@
private $termIndex;
/**
- * @var TermIndexSearchInteractor
+ * @var TermSearchInteractor
*/
private $termSearchInteractor;
@@ -86,7 +86,7 @@
/**
* @param TermIndex $termIndex
- * @param TermIndexSearchInteractor $termSearchInteractor
+ * @param TermSearchInteractor $termSearchInteractor
* @param string $languageCode content language
* @param string $repoScriptPath
* @param string $repoUrl
@@ -95,7 +95,7 @@
*/
public function __construct(
TermIndex $termIndex,
- TermIndexSearchInteractor $termSearchInteractor,
+ TermSearchInteractor $termSearchInteractor,
$languageCode,
$repoScriptPath,
$repoUrl,
--
To view, visit https://gerrit.wikimedia.org/r/337222
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibcdaf47c28fb1cdae747fa81bdbe0a942e3e1b91
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ArticlePlaceholder
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Lucie Kaffee <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits