facebook / facebook/hhvm

ReflectionParam->getClass() returns null with nullable typehint

Open
#6,064 1 comment 0 reactions 0 assignees View on GitHub
hack
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

``` hack
getParameters()[0]->getClass());
```

Outputs `null` when it should be returning a `ReflectionClass` instance of `A` (as it does without the nullability type hint)

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.