From 02a32c1c7a662bfeb0fb385e96dc02e6a2ff1248 Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Thu, 11 Feb 2016 00:25:29 +0100 Subject: [PATCH] Stop doing $that = $this in includes/changes Closures support $this as of PHP 5.4 Change-Id: I6bf728bf5c2222fd43945ec7a60a5f29efd42f0c --- includes/changes/ChangesList.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/changes/ChangesList.php b/includes/changes/ChangesList.php index 1741e64c19..73c7548b4c 100644 --- a/includes/changes/ChangesList.php +++ b/includes/changes/ChangesList.php @@ -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(); } ); -- 2.20.1