diff --git a/tests/phpunit/DegroupTest.php b/tests/phpunit/DegroupTest.php index e93e87870..2d16bbc30 100644 --- a/tests/phpunit/DegroupTest.php +++ b/tests/phpunit/DegroupTest.php @@ -20,7 +20,7 @@ class DegroupTest extends MediaWikiIntegrationTestCase { private function getMsgLocalizer(): MessageLocalizer { $ml = $this->createMock( MessageLocalizer::class ); - $ml->method( 'msg' )->willReturnCallback( function ( $k, $p ) { + $ml->method( 'msg' )->willReturnCallback( function ( $k, ...$p ) { return $this->getMockMessage( $k, $p ); } ); return $ml; diff --git a/tests/phpunit/unit/Consequences/Consequence/BlockAutopromoteTest.php b/tests/phpunit/unit/Consequences/Consequence/BlockAutopromoteTest.php index e34ba74e2..dbc29da69 100644 --- a/tests/phpunit/unit/Consequences/Consequence/BlockAutopromoteTest.php +++ b/tests/phpunit/unit/Consequences/Consequence/BlockAutopromoteTest.php @@ -20,7 +20,7 @@ class BlockAutopromoteTest extends MediaWikiUnitTestCase { private function getMsgLocalizer(): MessageLocalizer { $ml = $this->createMock( MessageLocalizer::class ); - $ml->method( 'msg' )->willReturnCallback( function ( $k, $p ) { + $ml->method( 'msg' )->willReturnCallback( function ( $k, ...$p ) { return $this->getMockMessage( $k, $p ); } ); return $ml; diff --git a/tests/phpunit/unit/Consequences/Consequence/BlockTest.php b/tests/phpunit/unit/Consequences/Consequence/BlockTest.php index 23e0ee270..7ecb9d929 100644 --- a/tests/phpunit/unit/Consequences/Consequence/BlockTest.php +++ b/tests/phpunit/unit/Consequences/Consequence/BlockTest.php @@ -26,7 +26,7 @@ class BlockTest extends MediaWikiUnitTestCase { private function getMsgLocalizer(): MessageLocalizer { $ml = $this->createMock( MessageLocalizer::class ); - $ml->method( 'msg' )->willReturnCallback( function ( $k, $p ) { + $ml->method( 'msg' )->willReturnCallback( function ( $k, ...$p ) { return $this->getMockMessage( $k, $p ); } ); return $ml; diff --git a/tests/phpunit/unit/Consequences/Consequence/RangeBlockTest.php b/tests/phpunit/unit/Consequences/Consequence/RangeBlockTest.php index 55661eeff..7106d9404 100644 --- a/tests/phpunit/unit/Consequences/Consequence/RangeBlockTest.php +++ b/tests/phpunit/unit/Consequences/Consequence/RangeBlockTest.php @@ -29,7 +29,7 @@ class RangeBlockTest extends MediaWikiUnitTestCase { private function getMsgLocalizer(): MessageLocalizer { $ml = $this->createMock( MessageLocalizer::class ); - $ml->method( 'msg' )->willReturnCallback( function ( $k, $p ) { + $ml->method( 'msg' )->willReturnCallback( function ( $k, ...$p ) { return $this->getMockMessage( $k, $p ); } ); return $ml;