Skip to content

Commit 926f542

Browse files
lexidorfacebook-github-bot
authored andcommitted
Update HHVM version to a supported version
Summary: Pull Request resolved: hhvm#21 Differential Revision: D16267042 fbshipit-source-id: 82b45ce904304351d2409098f9ef445ee241d0e9
1 parent 6251d30 commit 926f542

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.hhconfig

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ assume_php=false
22
disable_primitive_refinement=true
33
disallow_stringish_magic=true
44
user_attributes=
5+
disallow_ambiguous_lambda=true
6+
disable_unsafe_expr=true
7+
disable_unsafe_block=true

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ sudo: required
22
language: generic
33
services: docker
44
env:
5-
- HHVM_VERSION=4.7-latest
65
- HHVM_VERSION=4.8-latest
76
- HHVM_VERSION=latest
87
- HHVM_VERSION=nightly

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88
},
99
"require": {
10-
"hhvm": "^4.7",
10+
"hhvm": "^4.8",
1111
"hhvm/hsl": "^4.0"
1212
},
1313
"require-dev": {

src/StringDiff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function getUnifiedDiffHunk(
137137
invariant($old_start !== null, 'failed to find an old pos');
138138
invariant($new_start !== null, 'failed to find a new pos');
139139

140-
$format = ($start, $lines) ==> ($start === 1 && $lines === 1)
140+
$format = (int $start, int $lines) ==> ($start === 1 && $lines === 1)
141141
? '1'
142142
: Str\format('%d,%d', $start, $lines);
143143

0 commit comments

Comments
 (0)