X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fpreferences%2FDefaultPreferencesFactory.php;h=6cee7323f429db5dccb98bc3ac58ad4cd6096655;hp=68236e5f2efb7e2249e37c77aa9cfee26de3c8a9;hb=3bf40e4021fbe1087ab275767d5cf367b4a32f02;hpb=16e107c13c939cc092c12fe867916d05e9c97af7 diff --git a/includes/preferences/DefaultPreferencesFactory.php b/includes/preferences/DefaultPreferencesFactory.php index 68236e5f2e..6cee7323f4 100644 --- a/includes/preferences/DefaultPreferencesFactory.php +++ b/includes/preferences/DefaultPreferencesFactory.php @@ -81,12 +81,10 @@ class DefaultPreferencesFactory implements PreferencesFactory { protected $permissionManager; /** - * TODO Make this a const when we drop HHVM support (T192166) - * * @var array * @since 1.34 */ - public static $constructorOptions = [ + public const CONSTRUCTOR_OPTIONS = [ 'AllowRequiringEmailForResets', 'AllowUserCss', 'AllowUserCssPrefs', @@ -132,7 +130,7 @@ class DefaultPreferencesFactory implements PreferencesFactory { NamespaceInfo $nsInfo, PermissionManager $permissionManager ) { - $options->assertRequiredOptions( self::$constructorOptions ); + $options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS ); $this->options = $options; $this->contLang = $contLang;