Stop doing $that = $this in includes/changes
authorRicordisamoa <ricordisamoa@openmailbox.org>
Wed, 10 Feb 2016 23:25:29 +0000 (00:25 +0100)
committerRicordisamoa <ricordisamoa@openmailbox.org>
Wed, 10 Feb 2016 23:25:29 +0000 (00:25 +0100)
Closures support $this as of PHP 5.4

Change-Id: I6bf728bf5c2222fd43945ec7a60a5f29efd42f0c

includes/changes/ChangesList.php

index 1741e64..73c7548 100644 (file)
@@ -491,10 +491,9 @@ class ChangesList extends ContextSource {
                        return '';
                }
                $cache = $this->watchMsgCache;
-               $that = $this;
                return $cache->getWithSetCallback( $count, $cache::TTL_INDEFINITE,
-                       function () use ( $that, $count ) {
-                               return $that->msg( 'number_of_watching_users_RCview' )
+                       function () use ( $count ) {
+                               return $this->msg( 'number_of_watching_users_RCview' )
                                        ->numParams( $count )->escaped();
                        }
                );