facebook / facebook/hhvm

provide a way to tell the typechecker that a string classname definitely implements an interface

Open
#5,841 2 comments 0 reactions 0 assignees View on GitHub
feature request hack wishlist
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

eg:

``` Hack
$classes = $all_classes->filter($class => is_subclass_of($class, SomeInterface));
foreach ($classes as $class) {
$class::someStaticFunc();
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.