Stop doing $that = $this in includes/parser
authorRicordisamoa <ricordisamoa@openmailbox.org>
Thu, 11 Feb 2016 08:40:54 +0000 (09:40 +0100)
committerRicordisamoa <ricordisamoa@openmailbox.org>
Thu, 11 Feb 2016 08:40:54 +0000 (09:40 +0100)
Closures support $this as of PHP 5.4

Change-Id: Iace7ef43b17e8100f6bd71b4e23bad39cba87c0d

includes/parser/Parser.php

index f947285..bec83e1 100644 (file)
@@ -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;