Merge "Services: Convert LocalisationCache's static to a const now HHVM is gone"...
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 8 Oct 2019 21:10:44 +0000 (21:10 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 8 Oct 2019 21:10:44 +0000 (21:10 +0000)
1  2 
includes/ServiceWiring.php

@@@ -298,7 -298,7 +298,7 @@@ return 
  
                return new $conf['class'](
                        new ServiceOptions(
-                               LocalisationCache::$constructorOptions,
+                               LocalisationCache::CONSTRUCTOR_OPTIONS,
                                // Two of the options are stored in $wgLocalisationCacheConf
                                $conf,
                                // In case someone set that config variable and didn't reset all keys, set defaults.
        'PreferencesFactory' => function ( MediaWikiServices $services ) : PreferencesFactory {
                $factory = new DefaultPreferencesFactory(
                        new ServiceOptions(
 -                              DefaultPreferencesFactory::$constructorOptions, $services->getMainConfig() ),
 +                              DefaultPreferencesFactory::CONSTRUCTOR_OPTIONS, $services->getMainConfig() ),
                        $services->getContentLanguage(),
                        AuthManager::singleton(),
                        $services->getLinkRendererFactory()->create(),