From c138dc4ee3dc1fd48c0ebca4dcf22d2e2486bd3b Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Thu, 11 Feb 2016 09:40:54 +0100 Subject: [PATCH] Stop doing $that = $this in includes/parser Closures support $this as of PHP 5.4 Change-Id: Iace7ef43b17e8100f6bd71b4e23bad39cba87c0d --- includes/parser/Parser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.20.1