Stop doing $that = $this in includes/changes
Closures support $this as of PHP 5.4 Change-Id: I6bf728bf5c2222fd43945ec7a60a5f29efd42f0c
This commit is contained in:
parent
e089a5c023
commit
02a32c1c7a
1 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue