facebook / facebook/hhvm

ReflectionParameter::getTypehintText() returns empty string for nullable types

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

Description

### HHVM Version
```
HipHop VM 3.15.2 (rel)
Compiler: tags/HHVM-3.15.2-0-g83ac3e5e3f5657be0cf4c55884044f86a7818b90
Repo schema: 608339137764e8365964a1adaa7a27d125b6076f
```
### Standalone code, or other way to reproduce the problem
```php
getTypehintText(), $y->getTypehintText());
```
### Expected result
```
string(6) "HH\int"
string(6) "HH\int"
```
### Actual result
```
string(6) "HH\int"
string(0) ""
```

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.