objectcache: Make protected WANObjectCache::makePurgeValue non-static
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 4 Dec 2015 12:34:01 +0000 (12:34 +0000)
committerKrinkle <krinklemail@gmail.com>
Sun, 6 Dec 2015 14:34:03 +0000 (14:34 +0000)
It was already used everywhere as non-static via $this.
This is needed in order to allow MessageBlobStore unit tests
to disable the holdoff via a mock (mocks can't override static methods).

Change-Id: I3aad5b6e780addf1b6ce9de56c81b91f5ab358b2

includes/libs/objectcache/WANObjectCache.php

index 95bf743..8bdafcf 100644 (file)
@@ -1091,7 +1091,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface {
         * @param int $holdoff In seconds
         * @return string Wrapped purge value
         */
-       protected static function makePurgeValue( $timestamp, $holdoff ) {
+       protected function makePurgeValue( $timestamp, $holdoff ) {
                return self::PURGE_VAL_PREFIX . (float)$timestamp . ':' . (int)$holdoff;
        }
 }