From: Ricordisamoa Date: Thu, 11 Feb 2016 08:40:54 +0000 (+0100) Subject: Stop doing $that = $this in includes/parser X-Git-Tag: 1.31.0-rc.0~7975^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=c138dc4ee3dc1fd48c0ebca4dcf22d2e2486bd3b;p=lhc%2Fweb%2Fwiklou.git Stop doing $that = $this in includes/parser Closures support $this as of PHP 5.4 Change-Id: Iace7ef43b17e8100f6bd71b4e23bad39cba87c0d --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index f947285942..bec83e1c82 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -6408,9 +6408,8 @@ class Parser { } $this->mInParse = true; - $that = $this; - $recursiveCheck = new ScopedCallback( function() use ( $that ) { - $that->mInParse = false; + $recursiveCheck = new ScopedCallback( function() { + $this->mInParse = false; } ); return $recursiveCheck;