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

Most upvoted comments

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.