Skip to content

Commit b7671fa

Browse files
authored
Merge pull request #2 from nazg-hack/develop
Updated For HHVM4.0
2 parents 172cdfd + 897ab8f commit b7671fa

15 files changed

+32
-39
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
composer.phar
22
composer.lock
33
vendor/
4-
.vscode/
4+
docker/
5+
docker-compose.yml
6+
.vscode

.hhconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
assume_php = false
2+
enable_experimental_tc_features = no_fallback_in_namespaces
23
ignored_paths = [ "vendor/.+/tests/.+" ]
34
safe_array = true
45
safe_vector_array = true
6+
disallow_assign_by_ref = false
57
unsafe_rx = false

.travis.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/bin/bash
22
set -ex
3+
apt update -y
4+
DEBIAN_FRONTEND=noninteractive apt install -y php-cli zip unzip
35
hhvm --version
4-
curl https://getcomposer.org/installer | hhvm -d hhvm.jit=0 --php -- /dev/stdin --install-dir=/usr/local/bin --filename=composer
6+
php --version
57

6-
cd /var/source
7-
hhvm /usr/local/bin/composer install
8+
(
9+
cd $(mktemp -d)
10+
curl https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
11+
)
12+
composer install
13+
hh_client
814

915
hhvm ./vendor/bin/hacktest tests/

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
12
sudo: required
23
language: generic
34
services:
45
- docker
56
env:
67
matrix:
7-
- HHVM_VERSION=3.30.0
8-
- HHVM_VERSION=3.30.1
8+
- HHVM_VERSION=4.0.0
9+
- HHVM_VERSION=4.0.1
10+
- HHVM_VERSION=4.0.2
11+
- HHVM_VERSION=4.0.3
912
- HHVM_VERSION=latest
1013
install:
1114
- docker pull hhvm/hhvm:$HHVM_VERSION
1215
script:
13-
- env | egrep '^(HHVM_VERSION|GITHUB_API_KEY|TRAVIS_EVENT_TYPE)=' > ./env-list
14-
- docker run --env-file ./env-list -v $(pwd):/var/source hhvm/hhvm:$HHVM_VERSION /var/source/.travis.sh
16+
- docker run --rm -w /var/source -v $(pwd):/var/source hhvm/hhvm:$HHVM_VERSION ./.travis.sh

composer.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@
1818
}
1919
],
2020
"require": {
21-
"hhvm": ">=3.30",
22-
"hhvm/hsl": "^3.30.0",
23-
"hhvm/hsl-experimental": "^3.30.2",
24-
"facebook/hack-http-request-response-interfaces": "^0.1",
25-
"nazg/http-server-request-handler": "^0.1.0"
21+
"hhvm": "^4.0",
22+
"hhvm/hsl": "^4.0",
23+
"hhvm/hsl-experimental": "^4.0",
24+
"hhvm/hhvm-autoload": "^2.0.0",
25+
"facebook/hack-http-request-response-interfaces": "^0.2",
26+
"nazg/http-server-request-handler": "^0.2.0"
2627
},
2728
"require-dev": {
28-
"hhvm/hacktest": "^1.3",
29-
"facebook/fbexpect": "^2.3.0",
30-
"hhvm/hhast": "^3.30.0",
31-
"ytake/hungrr": "^0.2.0"
29+
"hhvm/hacktest": "^1.4",
30+
"facebook/fbexpect": "^2.5.2",
31+
"hhvm/hhast": "^4.0.0",
32+
"ytake/hungrr": "^0.3.0"
3233
},
3334
"autoload": {
3435
"psr-4": {
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?hh // strict
2-
31
/**
42
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?hh // strict
2-
31
/**
42
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?hh // strict
2-
31
/**
42
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?hh // strict
2-
31
/**
42
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@@ -50,7 +48,7 @@ protected function putStatusLine(
5048
'HTTP/%s %d%s',
5149
$version,
5250
$statusCode,
53-
($reasonPhrase ? ' ' . $reasonPhrase : '')
51+
(!Str\is_empty($reasonPhrase) ? ' ' . $reasonPhrase : '')
5452
),
5553
true,
5654
$statusCode
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?hh // strict
2-
31
/**
42
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

0 commit comments

Comments
 (0)