Services: Convert LocalisationCache's static to a const now HHVM is gone
[lhc/web/wiklou.git] / includes / cache / localisation / LocalisationCache.php
index 0f186b6..a9e6969 100644 (file)
@@ -221,12 +221,10 @@ class LocalisationCache {
        }
 
        /**
-        * @todo Make this a const when HHVM support is dropped (T192166)
-        *
         * @var array
         * @since 1.34
         */
-       public static $constructorOptions = [
+       public const CONSTRUCTOR_OPTIONS = [
                // True to treat all files as expired until they are regenerated by this object.
                'forceRecache',
                'manualRecache',
@@ -254,7 +252,7 @@ class LocalisationCache {
                LoggerInterface $logger,
                array $clearStoreCallbacks = []
        ) {
-               $options->assertRequiredOptions( self::$constructorOptions );
+               $options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS );
 
                $this->options = $options;
                $this->store = $store;