hhvm/vim-hack

Unbound name: ReflectionClass

aewing opened this issue · 1 comments

When using ReflectionClass inside of a Hack class I am getting the following error in vim:

example.php|6 col 18 error|   Unbound name: ReflectionClass

The code in question:

<?hh // strict
class Foo {
  public function bar(string $baz) : void
  {
    if (class_exists($baz)) {
      $foo = new \ReflectionClass($baz);
    }
  }
}
mxw commented

This is almost certainly an issue or non-issue with Hack, not the vim-hack plugin. Please report Hack issues on the facebook/hhvm repo.