aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php')
-rw-r--r--tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php
index 83c939f56245..0c1c2d8853aa 100644
--- a/tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php
+++ b/tests/phpunit/includes/auth/TemporaryPasswordPrimaryAuthenticationProviderTest.php
@@ -422,56 +422,56 @@ class TemporaryPasswordPrimaryAuthenticationProviderTest extends \MediaWikiInteg
return [
[
AuthenticationRequest::class,
- fn ( $sysopUsername ) => $sysopUsername,
+ static fn ( $sysopUsername ) => $sysopUsername,
Status::newGood(),
StatusValue::newGood( 'ignored' ),
StatusValue::newGood( 'ignored' )
],
[
PasswordAuthenticationRequest::class,
- fn ( $sysopUsername ) => $sysopUsername,
+ static fn ( $sysopUsername ) => $sysopUsername,
Status::newGood(),
StatusValue::newGood( 'ignored' ),
StatusValue::newGood( 'ignored' )
],
[
TemporaryPasswordAuthenticationRequest::class,
- fn ( $sysopUsername ) => $sysopUsername,
+ static fn ( $sysopUsername ) => $sysopUsername,
Status::newGood(),
StatusValue::newGood(),
StatusValue::newGood()
],
[
TemporaryPasswordAuthenticationRequest::class,
- fn ( $sysopUsername ) => lcfirst( $sysopUsername ),
+ static fn ( $sysopUsername ) => lcfirst( $sysopUsername ),
Status::newGood(),
StatusValue::newGood(),
StatusValue::newGood()
],
[
TemporaryPasswordAuthenticationRequest::class,
- fn ( $sysopUsername ) => $sysopUsername,
+ static fn ( $sysopUsername ) => $sysopUsername,
Status::wrap( $err ),
StatusValue::newGood(),
$err
],
[
TemporaryPasswordAuthenticationRequest::class,
- fn ( $sysopUsername ) => $sysopUsername,
+ static fn ( $sysopUsername ) => $sysopUsername,
Status::newFatal( 'arbitrary-error' ),
StatusValue::newGood(),
StatusValue::newFatal( 'arbitrary-error' )
],
[
TemporaryPasswordAuthenticationRequest::class,
- fn () => 'DoesNotExist',
+ static fn () => 'DoesNotExist',
Status::newGood(),
StatusValue::newGood(),
StatusValue::newGood( 'ignored' )
],
[
TemporaryPasswordAuthenticationRequest::class,
- fn () => '<invalid>',
+ static fn () => '<invalid>',
Status::newGood(),
StatusValue::newGood(),
StatusValue::newGood( 'ignored' )