diff options
author | Reedy <reedy@wikimedia.org> | 2023-08-22 19:46:48 +0100 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2023-08-22 19:38:38 +0000 |
commit | a1144dc7c5a0145cc545089b4702bf3c472200b6 (patch) | |
tree | 2b836ab47cc105da56cb200ed87585677cdfb9bf /includes/changes | |
parent | d3dabf0cca9504ae1e5d2ba01778a31dcdd46fc0 (diff) | |
download | mediawikicore-a1144dc7c5a0145cc545089b4702bf3c472200b6.tar.gz mediawikicore-a1144dc7c5a0145cc545089b4702bf3c472200b6.zip |
mark various anonymous functions as static
Change-Id: Iefe896769359f0d32e52bf20aa03e1c3715d5074
Diffstat (limited to 'includes/changes')
-rw-r--r-- | includes/changes/RCCacheEntryFactory.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/changes/RCCacheEntryFactory.php b/includes/changes/RCCacheEntryFactory.php index 32c8301084a0..6c2368f04ddd 100644 --- a/includes/changes/RCCacheEntryFactory.php +++ b/includes/changes/RCCacheEntryFactory.php @@ -109,7 +109,7 @@ class RCCacheEntryFactory { $this->context->getUser()->getName(), $this->context->getLanguage()->getCode() ), - fn() => Linker::userToolLinks( + static fn() => Linker::userToolLinks( $cacheEntry->mAttribs['rc_user'], $cacheEntry->mAttribs['rc_user_text'], // Should the contributions link be red if the user has no edits (using default) @@ -328,7 +328,7 @@ class RCCacheEntryFactory { $this->context->getUser()->getName(), $this->context->getLanguage()->getCode() ), - fn() => Linker::userLink( + static fn() => Linker::userLink( $cacheEntry->mAttribs['rc_user'], $cacheEntry->mAttribs['rc_user_text'], ExternalUserNames::getLocal( $cacheEntry->mAttribs['rc_user_text'] ) |