Thiemo Mättig (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/337791 )

Change subject: Fix type errors in TermBuffer mocks
......................................................................

Fix type errors in TermBuffer mocks

Change-Id: I340305d72c7c4a374b80088427ec65afcdc211a6
---
M lib/tests/phpunit/Store/DispatchingTermBufferTest.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/91/337791/1

diff --git a/lib/tests/phpunit/Store/DispatchingTermBufferTest.php 
b/lib/tests/phpunit/Store/DispatchingTermBufferTest.php
index 1d05aba..47f2d24 100644
--- a/lib/tests/phpunit/Store/DispatchingTermBufferTest.php
+++ b/lib/tests/phpunit/Store/DispatchingTermBufferTest.php
@@ -55,7 +55,8 @@
                $fooTermBuffer = $this->getMock( TermBuffer::class );
                $fooTermBuffer->expects( $this->exactly( $callsPerRepo['foo'] ) 
)
                        ->method( 'prefetchTerms' )
-                       ->with( $this->callback( function ( $ids ) {
+                       ->with( $this->callback( function ( array $ids ) {
+                               /** @var EntityId[] $ids */
                                foreach ( $ids as $id ) {
                                        if ( $id->getRepositoryName() !== 'foo' 
) {
                                                return false;
@@ -67,7 +68,8 @@
                $localTermBuffer = $this->getMock( TermBuffer::class );
                $localTermBuffer->expects( $this->exactly( $callsPerRepo[''] ) )
                        ->method( 'prefetchTerms' )
-                       ->with( $this->callback( function ( $ids ) {
+                       ->with( $this->callback( function ( array $ids ) {
+                               /** @var EntityId[] $ids */
                                foreach ( $ids as $id ) {
                                        if ( $id->getRepositoryName() !== '' ) {
                                                return false;

-- 
To view, visit https://gerrit.wikimedia.org/r/337791
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I340305d72c7c4a374b80088427ec65afcdc211a6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <thiemo.maet...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to