aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/mocks/MockTitleTrait.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/mocks/MockTitleTrait.php')
-rw-r--r--tests/phpunit/mocks/MockTitleTrait.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/mocks/MockTitleTrait.php b/tests/phpunit/mocks/MockTitleTrait.php
index 43994ae82e55..f886a0b48a98 100644
--- a/tests/phpunit/mocks/MockTitleTrait.php
+++ b/tests/phpunit/mocks/MockTitleTrait.php
@@ -46,10 +46,10 @@ trait MockTitleTrait {
$title->method( 'getTouched' )->willReturn( $id ? '20200101223344' : false );
$title->method( 'getPageLanguage' )->willReturn( $props['language'] ?? 'qqx' );
$title->method( 'getRestrictions' )->willReturn( [] );
- $title->method( 'isSamePageAs' )->willReturnCallback( function ( $other ) use ( $id ) {
+ $title->method( 'isSamePageAs' )->willReturnCallback( static function ( $other ) use ( $id ) {
return $other && $id === $other->getArticleId();
} );
- $title->method( 'isSameLinkAs' )->willReturnCallback( function ( $other ) use ( $ns, $text ) {
+ $title->method( 'isSameLinkAs' )->willReturnCallback( static function ( $other ) use ( $ns, $text ) {
return $other && $text === $other->getDBkey() && $ns === $other->getNamespace();
} );