Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Support 3.24, require 3.23+
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jan 9, 2018
1 parent 14d3bc1 commit aa66226
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 89 deletions.
1 change: 1 addition & 0 deletions .hhconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
assume_php=false
enable_experimental_tc_features = safe_pass_by_ref, safe_array, safe_vector_array, contextual_inference
7 changes: 2 additions & 5 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ hh_server --check $(pwd)
hhvm -d hhvm.php7.all=0 vendor/bin/phpunit tests/
hhvm -d hhvm.php7.all=1 vendor/bin/phpunit tests/

HHVM_VERSION=$(hhvm --php -r 'echo HHVM_VERSION_ID;' 2>/dev/null);
if [ $HHVM_VERSION -ge 32200 -a $HHVM_VERSION -lt 32300 ]; then
echo enable_experimental_tc_features = optional_shape_field, unknown_fields_shape_is_not_subtype_of_known_fields_shape >> .hhconfig
hh_server --check $(pwd)
fi
sed -i '/enable_experimental_tc_features/d' .hhconfig
hh_server --check $(pwd)
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: generic
services:
- docker
env:
- HHVM_VERSION=3.21-lts-latest
- HHVM_VERSION=latest
- HHVM_VERSION=nightly
install:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"keywords": ["hack", "router", "routing", "hhvm"],
"homepage": "https://github.com/hhvm/hack-router",
"require": {
"hhvm": "^3.23.0",
"hack-psr/psr7-http-message-hhi": "^0.2.0|^1.0.0",
"hhvm/hsl": "^1.0.0",
"hhvm/hhvm-autoload": "^1.5.3"
Expand All @@ -17,6 +18,6 @@
"phpunit/phpunit": "^5.1",
"91carriage/phpunit-hhi": "^5.1",
"zendframework/zend-diactoros": "^1.3",
"facebook/fbexpect": "^0.3.0"
"facebook/fbexpect": "^0.4.0"
}
}
Loading

0 comments on commit aa66226

Please sign in to comment.