Page MenuHomePhabricator

Failing build process: Variadic params with type constraints are not supported in non-Hack files
Closed, ResolvedPublic

Description

Currently the build process for the TwnMainPage extension is failing,

23:21:37 Fatal error: Parameter $components is variadic and has a type constraint (array); variadic params with type constraints are not supported in non-Hack files in /workspace/src/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php(290)(f20f14cd5fcea3c462c1b8717778808f) : eval()'d code on line 429

Some information about why this is happening,

  1. https://phabricator.wikimedia.org/T192166#4475526
  2. https://github.com/facebook/hhvm/issues/6954

This is currently blocking: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/TwnMainPage/+/531831

Event Timeline

abi_ renamed this task from Fix failing build process for TwnMainPage extension to Failing build process: Variadic params with type constraints are not supported in non-Hack files.Aug 27 2019, 7:24 AM
abi_ triaged this task as High priority.
abi_ updated the task description. (Show Details)

Change 532546 had a related patch set uploaded (by Abijeet Patro; owner: Abijeet Patro):
[mediawiki/extensions/TwnMainPage@master] Fix failing build for TwnMainPage on HHVM

https://gerrit.wikimedia.org/r/532546

Change 532546 merged by jenkins-bot:
[mediawiki/extensions/TwnMainPage@master] Fix failing build for TwnMainPage on HHVM

https://gerrit.wikimedia.org/r/532546

abi_ moved this task from In Review to Done on the Language-Team (Language-2019-July-September) board.

Thanks @Daimona. Will keep this in mind. For this extension, we are no longer running these tests on HHVM during the CI process.

Resolving this task.