X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fblock%2FBlockManager.php;h=be09665cca9d01fb3aada022af80c116f43c4e21;hp=077bdca7c856ff67fd82a45111faadf31e580f9a;hb=571d305cceb7749a05e43debec95317c497d69c6;hpb=21a8c909ba31ae6c63fa04fe3cee0f42ce8a9c33 diff --git a/includes/block/BlockManager.php b/includes/block/BlockManager.php index 077bdca7c8..be09665cca 100644 --- a/includes/block/BlockManager.php +++ b/includes/block/BlockManager.php @@ -49,12 +49,10 @@ class BlockManager { private $options; /** - * TODO Make this a const when HHVM support is dropped (T192166) - * * @var array * @since 1.34 */ - public static $constructorOptions = [ + public const CONSTRUCTOR_OPTIONS = [ 'ApplyIpBlocksToXff', 'CookieSetOnAutoblock', 'CookieSetOnIpBlock', @@ -79,7 +77,7 @@ class BlockManager { PermissionManager $permissionManager, LoggerInterface $logger ) { - $options->assertRequiredOptions( self::$constructorOptions ); + $options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS ); $this->options = $options; $this->permissionManager = $permissionManager; $this->logger = $logger;