diff options
Diffstat (limited to 'includes/deferred/DeferredUpdates.php')
-rw-r--r-- | includes/deferred/DeferredUpdates.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/deferred/DeferredUpdates.php b/includes/deferred/DeferredUpdates.php index ad9bcbdd96b6..63a69563735b 100644 --- a/includes/deferred/DeferredUpdates.php +++ b/includes/deferred/DeferredUpdates.php @@ -300,7 +300,7 @@ class DeferredUpdates { self::getScopeStack()->current()->consumeMatchingUpdates( self::ALL, EnqueueableDataUpdate::class, - function ( EnqueueableDataUpdate $update ) { + static function ( EnqueueableDataUpdate $update ) { $spec = $update->getAsJobSpecification(); JobQueueGroup::singleton( $spec['domain'] )->push( $spec['job'] ); } @@ -525,8 +525,8 @@ class DeferredUpdates { } $connsBusy = false; - $lbFactory->forEachLB( function ( LoadBalancer $lb ) use ( &$connsBusy ) { - $lb->forEachOpenMasterConnection( function ( IDatabase $conn ) use ( &$connsBusy ) { + $lbFactory->forEachLB( static function ( LoadBalancer $lb ) use ( &$connsBusy ) { + $lb->forEachOpenMasterConnection( static function ( IDatabase $conn ) use ( &$connsBusy ) { if ( $conn->writesOrCallbacksPending() || $conn->explicitTrxActive() ) { $connsBusy = true; } |