Skip to content

Commit 5ba2a90

Browse files
committed
added allowed_fixme_codes_strict
1 parent 773b3ee commit 5ba2a90

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

.hhconfig

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ enable_experimental_tc_features = no_fallback_in_namespaces
33
ignored_paths = [ "vendor/.+/tests/.+", "vendor/bin/.*"]
44
disallow_assign_by_ref = false
55
unsafe_rx = false
6-
disallow_elvis_space=true
7-
disallow_non_arraykey_keys=true
8-
disallow_unsafe_comparisons=true
9-
decl_override_require_hint=true
10-
enable_experimental_tc_features=shape_field_check,sealed_classes,reified_generics
6+
disable_static_local_variables = true
7+
disable_instanceof_refinement = true
8+
disallow_array_literal = false
9+
disable_lval_as_an_expression = true
10+
new_inference_lambda = true
11+
error_php_lambdas = true
12+
allowed_decl_fixme_codes=2053,4045,4047
13+
allowed_fixme_codes_strict=2011,2049,2050,2053,2083,3004,3084,4027,4045,4047,4053,4104,4106,4108,4110,4119,4128,4135,4188,4223,4240,4248,4323,4200

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
- docker
55
env:
66
matrix:
7-
- HHVM_VERSION=4.58.1
7+
- HHVM_VERSION=4.62.0
88
- HHVM_VERSION=latest
99
install:
1010
- docker pull hhvm/hhvm-proxygen:$HHVM_VERSION

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
}
1717
],
1818
"require": {
19-
"hhvm": "^4.58",
19+
"hhvm": "^4.62",
2020
"hhvm/hsl": "^4.0",
2121
"hhvm/hsl-experimental": "^4.50",
2222
"hhvm/hhvm-autoload": "^3.0",
2323
"ytake/hungrr": "^0.12",
24-
"ytake/hhypermedia": "^0.5.0",
25-
"nazg/glue": "^1.4",
26-
"nazg/heredity": "^1.11",
27-
"nazg/hcache": "^0.5",
24+
"ytake/hhypermedia": "^0.6.0",
25+
"nazg/glue": "^1.5",
26+
"nazg/heredity": "^1.12",
27+
"nazg/hcache": "^0.6",
2828
"nazg/http-server-request-handler": "^0.6.0",
29-
"nazg/http-executor": "^0.11",
29+
"nazg/http-executor": "^0.12",
3030
"facebook/hack-router": "^0.19.6",
3131
"facebook/hack-http-request-response-interfaces": "^0.3",
32-
"hack-logging/hack-logging": "^0.6.0"
32+
"hack-logging/hack-logging": "^0.7.0"
3333
},
3434
"require-dev": {
3535
"facebook/fbexpect": "^2.6.1",

src/Cache/Resolver/MemcachedResolver.hack

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* This software consists of voluntary contributions made by many individuals
1111
* and is licensed under the MIT license.
1212
*
13-
* Copyright (c) 2017-2018 Yuuki Takezawa
13+
* Copyright (c) 2017-2020 Yuuki Takezawa
1414
*
1515
*/
1616
namespace Nazg\Cache\Resolver;
@@ -30,7 +30,10 @@ class MemcachedResolver {
3030
$m = new Memcached(Shapes::idx($config, 'persistentId'));
3131
$servers = Shapes::idx($config, 'servers');
3232
if($servers is nonnull) {
33-
$m->addServers($servers);
33+
foreach ($servers as $value) {
34+
$m->addServer($value['host'], $value['port'], Shapes::idx($value, 'weight', 0));
35+
36+
}
3437
}
3538
return $m;
3639
}

0 commit comments

Comments
 (0)