dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Services: Convert BlobStoreFactory's static to a const now HHVM is gone
[lhc/web/wiklou.git]
/
includes
/
Storage
/
BlobStoreFactory.php
diff --git
a/includes/Storage/BlobStoreFactory.php
b/includes/Storage/BlobStoreFactory.php
index
b59c68d
..
c1371c9
100644
(file)
--- a/
includes/Storage/BlobStoreFactory.php
+++ b/
includes/Storage/BlobStoreFactory.php
@@
-61,12
+61,10
@@
class BlobStoreFactory {
private $contLang;
/**
private $contLang;
/**
- * TODO Make this a const when HHVM support is dropped (T192166)
- *
* @var array
* @since 1.34
*/
* @var array
* @since 1.34
*/
- public
static $constructorOptions
= [
+ public
const CONSTRUCTOR_OPTIONS
= [
'CompressRevisions',
'DefaultExternalStore',
'LegacyEncoding',
'CompressRevisions',
'DefaultExternalStore',
'LegacyEncoding',
@@
-80,7
+78,7
@@
class BlobStoreFactory {
ServiceOptions $options,
Language $contLang
) {
ServiceOptions $options,
Language $contLang
) {
- $options->assertRequiredOptions( self::
$constructorOptions
);
+ $options->assertRequiredOptions( self::
CONSTRUCTOR_OPTIONS
);
$this->lbFactory = $lbFactory;
$this->extStoreAccess = $extStoreAccess;
$this->lbFactory = $lbFactory;
$this->extStoreAccess = $extStoreAccess;