You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
some classes are already written in PHP, and when their have some untyped parameters, mocking fails, for example:
<?hh // decl
class Foo {
public function untypedParameter($param): void {
}
}
also works with <?php as initial tag.
The error:
Fatal error: A type specifier is expected here. in /app/vendor/usox/hackmock/src/Mock.hh(123)(df9b58dfc07696f2f66f85fd021ce9e7) : eval()'d code on line 5
I know that PHP support is ending for HHVM, but come on, this is breaking a lot of possible mocks and possible integrations with this great library.
some classes are already written in PHP, and when their have some untyped parameters, mocking fails, for example:
also works with
<?phpas initial tag.The error:
I know that PHP support is ending for HHVM, but come on, this is breaking a lot of possible mocks and possible integrations with this great library.