From: Kunal Mehta Date: Fri, 21 Aug 2015 20:32:39 +0000 (-0700) Subject: BagOStuff: Don't use $this in a closure X-Git-Tag: 1.31.0-rc.0~10310^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=78f1fee5593781b3b0a86d9fb20028143938f906;p=lhc%2Fweb%2Fwiklou.git BagOStuff: Don't use $this in a closure Change-Id: Ib9fb92a70adc2b4d75c30148e17dff6f7765afe1 --- diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index d72e1a551e..2756143669 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -294,7 +294,7 @@ abstract class BagOStuff implements LoggerAwareInterface { $latency = .050; // latency skew (err towards keeping lock present) $age = ( microtime( true ) - $lSince + $latency ); if ( ( $age + $latency ) >= $expiry ) { - $this->logger->warning( "Lock for $key held too long ($age sec)." ); + $that->logger->warning( "Lock for $key held too long ($age sec)." ); return; // expired; it's not "safe" to delete the key } $that->unlock( $key );