Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

mock untyped parameters #1

@ivyhjk

Description

@ivyhjk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions