aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php')
-rw-r--r--tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php b/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php
index 2829a0cb89cd..a3ac493eef58 100644
--- a/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php
+++ b/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php
@@ -283,7 +283,7 @@ class ApiQuerySiteinfoTest extends ApiTestCase {
public function testStatistics() {
$this->setTemporaryHook( 'APIQuerySiteInfoStatisticsInfo',
- function ( &$data ) {
+ static function ( &$data ) {
$data['addedstats'] = 42;
}
);
@@ -666,7 +666,7 @@ class ApiQuerySiteinfoTest extends ApiTestCase {
// Make sure there's something to report on
$this->setTemporaryHook( 'somehook',
- function () {
+ static function () {
return;
}
);