From: Ricordisamoa Date: Wed, 10 Feb 2016 17:22:59 +0000 (+0100) Subject: Stop doing $that = $this in includes/deferred X-Git-Tag: 1.31.0-rc.0~8022^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=f76275febc91d90d72fb2ef1299f2f66454d2107;p=lhc%2Fweb%2Fwiklou.git Stop doing $that = $this in includes/deferred Closures support $this as of PHP 5.4 Change-Id: I2632d0c2bdc9e2fec72f1c64c3868dcb442ba871 --- 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 ) ); } ); }