aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/Preprocessor.php
diff options
context:
space:
mode:
authorMax Semenik <maxsem.wiki@gmail.com>2016-02-22 17:03:51 -0800
committerMax Semenik <maxsem.wiki@gmail.com>2016-02-22 17:03:51 -0800
commit89710f4ba0941ea20b87e0adc3afe223800ff22e (patch)
tree3f5357e2f4dfa9392d478e4d1e314ed97e47428b /includes/parser/Preprocessor.php
parent95b2be3bd3d95c5d0598e664a797cad8f216ba37 (diff)
downloadmediawikicore-89710f4ba0941ea20b87e0adc3afe223800ff22e.tar.gz
mediawikicore-89710f4ba0941ea20b87e0adc3afe223800ff22e.zip
Fix a PHP 5.5 TODO
Change-Id: Ieb3bc27e4f33e170b2217ab8eab58f5309083e80
Diffstat (limited to 'includes/parser/Preprocessor.php')
-rw-r--r--includes/parser/Preprocessor.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/includes/parser/Preprocessor.php b/includes/parser/Preprocessor.php
index 255fef8adc97..368d79ef4993 100644
--- a/includes/parser/Preprocessor.php
+++ b/includes/parser/Preprocessor.php
@@ -67,9 +67,7 @@ abstract class Preprocessor {
}
$key = wfMemcKey(
- // TODO: Once we require PHP 5.5, use static::class instead of
- // get_called_class() or get_class( $this ).
- defined( 'static::CACHE_PREFIX' ) ? static::CACHE_PREFIX : get_called_class(),
+ defined( 'static::CACHE_PREFIX' ) ? static::CACHE_PREFIX : static::class,
md5( $text ), $flags );
$value = sprintf( "%08d", static::CACHE_VERSION ) . $tree;
@@ -100,9 +98,7 @@ abstract class Preprocessor {
$cache = ObjectCache::getInstance( $config->get( 'MainCacheType' ) );
$key = wfMemcKey(
- // TODO: Once we require PHP 5.5, use static::class instead of
- // get_called_class() or get_class( $this ).
- defined( 'static::CACHE_PREFIX' ) ? static::CACHE_PREFIX : get_called_class(),
+ defined( 'static::CACHE_PREFIX' ) ? static::CACHE_PREFIX : static::class,
md5( $text ), $flags );
$value = $cache->get( $key );