X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fcache%2FFileCacheBase.php;h=0a302b6ec15602259b43b8cd0f2088be8b7bc0e4;hb=22806b0a4509e97b56fb52b387e17e3c80fb7eb2;hp=6d5f8c3e55a5c08a59c4c5e8e441f7eb08ed43af;hpb=8e622749cf468f4da8ca3dcb16777f9a56609aba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/FileCacheBase.php b/includes/cache/FileCacheBase.php index 6d5f8c3e55..0a302b6ec1 100644 --- a/includes/cache/FileCacheBase.php +++ b/includes/cache/FileCacheBase.php @@ -242,7 +242,7 @@ abstract class FileCacheBase { : IP::sanitizeRange( "$ip/16" ); # Bail out if a request already came from this range... - $key = wfMemcKey( get_class( $this ), 'attempt', $this->mType, $this->mKey, $ip ); + $key = wfMemcKey( static::class, 'attempt', $this->mType, $this->mKey, $ip ); if ( $cache->get( $key ) ) { return; // possibly the same user } @@ -272,6 +272,6 @@ abstract class FileCacheBase { * @return string */ protected function cacheMissKey() { - return wfMemcKey( get_class( $this ), 'misses', $this->mType, $this->mKey ); + return wfMemcKey( static::class, 'misses', $this->mType, $this->mKey ); } }