aboutsummaryrefslogtreecommitdiffstats
path: root/includes/objectcache/ObjectCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/objectcache/ObjectCache.php')
-rw-r--r--includes/objectcache/ObjectCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php
index 32ece3183539..dda235a0ddd1 100644
--- a/includes/objectcache/ObjectCache.php
+++ b/includes/objectcache/ObjectCache.php
@@ -181,7 +181,7 @@ class ObjectCache {
}
} elseif ( !isset( $params['localKeyLB'] ) ) {
$params['localKeyLB'] = [
- 'factory' => function () {
+ 'factory' => static function () {
return MediaWikiServices::getInstance()->getDBLoadBalancer();
}
];