aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php')
-rw-r--r--tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php b/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
index d26fa35fff99..fa5ea9827745 100644
--- a/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
+++ b/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
@@ -29,7 +29,7 @@ class HTMLCheckMatrixTest extends MediaWikiUnitTestCase {
public function testValidateCallsUserDefinedValidationCallback() {
$called = false;
$field = new HTMLCheckMatrix( self::$defaultOptions + [
- 'validation-callback' => function () use ( &$called ) {
+ 'validation-callback' => static function () use ( &$called ) {
$called = true;
return false;