Skip to content

Commit 544f802

Browse files
authored
Feature/patch for hhvm4.25 (#14)
* changed inout * Update .travis.yml
1 parent 8723f28 commit 544f802

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ services:
44
- docker
55
env:
66
matrix:
7-
- HHVM_VERSION=4.14.1
8-
- HHVM_VERSION=4.15.1
9-
- HHVM_VERSION=4.16.2
10-
- HHVM_VERSION=4.17.1
7+
- HHVM_VERSION=4.25.1
8+
- HHVM_VERSION=4.26.1
9+
- HHVM_VERSION=4.27.1
10+
- HHVM_VERSION=4.28.2
11+
- HHVM_VERSION=4.29.0
1112
- HHVM_VERSION=latest
1213
install:
1314
- docker pull hhvm/hhvm:$HHVM_VERSION

composer.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,27 @@
1111
],
1212
"minimum-stability": "stable",
1313
"require": {
14-
"hhvm": "^4.14",
14+
"hhvm": "^4.25",
1515
"hhvm/hsl": "^4.0",
16-
"hhvm/hsl-experimental": "^4.0",
17-
"hhvm/hhvm-autoload": "^2.0.7"
16+
"hhvm/hsl-experimental": "^4.25",
17+
"hhvm/hhvm-autoload": "^2.0.10"
1818
},
1919
"require-dev": {
20-
"hhvm/hacktest": "^1.6.1",
21-
"facebook/fbexpect": "^2.6.0",
20+
"hhvm/hacktest": "^2.0.0",
21+
"facebook/fbexpect": "^2.7.3",
2222
"hhvm/hhast": "^4.0.0"
2323
},
2424
"autoload": {
2525
"psr-4": {
2626
"Nazg\\Glue\\": "src/"
2727
}
28+
},
29+
"scripts": {
30+
"tests": [
31+
"hhvm ./vendor/bin/hacktest.hack tests/"
32+
],
33+
"register": [
34+
"hhvm ./vendor/bin/hh-autoload.hack"
35+
]
2836
}
2937
}

src/ApcCache.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ApcCache {
4141
Serializer\UnserializeInterface $unserializer
4242
): dict<string, (DependencyInterface, Scope)> {
4343
$success = null;
44-
$result = apc_fetch($this->keyname, &$success);
44+
$result = apc_fetch($this->keyname, inout $success);
4545
if (!$success) {
4646
throw new CacheNotFoundException('cache not found.');
4747
}

0 commit comments

Comments
 (0)