phpunit: Cannot build application on HHVM
Q | A |
---|---|
PHPUnit version | ^6.4 |
PHP version | HipHop VM 3.28.3 |
Installation Method | Composer |
While running a travis build for hhvm
this is an error I get
Fatal error: Uncaught Error: Parameter $constraints is variadic and has a type constraint (Constraint); variadic params with type constraints are not supported in non-Hack files in phar://phpunit-6.5.2.phar/phpunit/Framework/Constraint/LogicalAnd.php:29
Stack trace:
#0 /home/travis/.phpenv/versions/hhvm-stable/bin/phpunit(103): include()
#1 {main}
What can I do to run tests in PhpUnit on hhvm?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (6 by maintainers)
Commits related to this issue
- Remove HHVM from Travis CI config PHPUnit dropped support of hhvm, so build unlikely will pass tests. https://github.com/sebastianbergmann/phpunit/issues/3320#issuecomment-426325646 — committed to ybelenko/openapi-generator by ybelenko 4 years ago
- [php] Set required PHP 7.1 in code comments and readme (#6188) * Bump PHP version to 7.1 in readme * Bump PHP version to 7.1 in class templates * Remove HHVM from Travis CI config PHPUnit dr... — committed to OpenAPITools/openapi-generator by ybelenko 4 years ago
HHVM has announced that they no longer intend to maintain compatibility with PHP, so if you want to stay on HHVM, you should not expect to be able to use anything that’s written for PHP. You should commit your app to either PHP 7 without HHVM compatibility, or pure Hack without PHP compatibility. Trying to work with both is going to cause a lot of headaches for you, and will eventually be impossible.