aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2021-02-07 14:10:36 +0100
committerKrinkle <krinklemail@gmail.com>2021-02-09 02:55:57 +0000
commita1de8b8700f4aa9e27bb571fac1705ff8dac161a (patch)
tree504ec50953e1bc7fbd92fb2959564ddce02062a0 /tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
parent20f44cb1ea0fc957c83e01e438b4c4fc04053fb7 (diff)
downloadmediawikicore-a1de8b8700f4aa9e27bb571fac1705ff8dac161a.tar.gz
mediawikicore-a1de8b8700f4aa9e27bb571fac1705ff8dac161a.zip
Tests: Mark more more closures as static
Result of a new sniff I25a17fb22b6b669e817317a0f45051ae9c608208 Bug: T274036 Change-Id: I695873737167a75f0d94901fa40383a33984ca55
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php')
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php b/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
index dc4d2adcad8b..4b374487d8f4 100644
--- a/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
@@ -30,16 +30,16 @@ class ApiQueryBlockInfoTraitTest extends MediaWikiIntegrationTestCase {
->willReturn( MediaWikiServices::getInstance()->getPermissionManager() );
$mock->method( 'getUser' )
->willReturn( $this->getMutableTestUser()->getUser() );
- $mock->method( 'addTables' )->willReturnCallback( function ( $v ) use ( &$data ) {
+ $mock->method( 'addTables' )->willReturnCallback( static function ( $v ) use ( &$data ) {
$data['tables'] = array_merge( $data['tables'] ?? [], (array)$v );
} );
- $mock->method( 'addFields' )->willReturnCallback( function ( $v ) use ( &$data ) {
+ $mock->method( 'addFields' )->willReturnCallback( static function ( $v ) use ( &$data ) {
$data['fields'] = array_merge( $data['fields'] ?? [], (array)$v );
} );
- $mock->method( 'addWhere' )->willReturnCallback( function ( $v ) use ( &$data ) {
+ $mock->method( 'addWhere' )->willReturnCallback( static function ( $v ) use ( &$data ) {
$data['where'] = array_merge( $data['where'] ?? [], (array)$v );
} );
- $mock->method( 'addJoinConds' )->willReturnCallback( function ( $v ) use ( &$data ) {
+ $mock->method( 'addJoinConds' )->willReturnCallback( static function ( $v ) use ( &$data ) {
$data['joins'] = array_merge( $data['joins'] ?? [], (array)$v );
} );