Services: Convert BlobStoreFactory's static to a const now HHVM is gone
[lhc/web/wiklou.git] / includes / Storage / BlobStoreFactory.php
index b59c68d..c1371c9 100644 (file)
@@ -61,12 +61,10 @@ class BlobStoreFactory {
        private $contLang;
 
        /**
-        * TODO Make this a const when HHVM support is dropped (T192166)
-        *
         * @var array
         * @since 1.34
         */
-       public static $constructorOptions = [
+       public const CONSTRUCTOR_OPTIONS = [
                'CompressRevisions',
                'DefaultExternalStore',
                'LegacyEncoding',
@@ -80,7 +78,7 @@ class BlobStoreFactory {
                ServiceOptions $options,
                Language $contLang
        ) {
-               $options->assertRequiredOptions( self::$constructorOptions );
+               $options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS );
 
                $this->lbFactory = $lbFactory;
                $this->extStoreAccess = $extStoreAccess;