aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.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/unit/includes/htmlform/HTMLCheckMatrixTest.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/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;