From f76275febc91d90d72fb2ef1299f2f66454d2107 Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Wed, 10 Feb 2016 18:22:59 +0100 Subject: [PATCH] Stop doing $that = $this in includes/deferred Closures support $this as of PHP 5.4 Change-Id: I2632d0c2bdc9e2fec72f1c64c3868dcb442ba871 --- includes/deferred/LinksUpdate.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index 3021af192c..9cd20fc6f7 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -143,9 +143,8 @@ class LinksUpdate extends SqlDataUpdate implements EnqueueableDataUpdate { Hooks::run( 'LinksUpdate', array( &$this ) ); $this->doIncrementalUpdate(); - $that = $this; - $this->mDb->onTransactionIdle( function() use ( $that ) { - Hooks::run( 'LinksUpdateComplete', array( &$that ) ); + $this->mDb->onTransactionIdle( function() { + Hooks::run( 'LinksUpdateComplete', array( &$this ) ); } ); } -- 2.20.1