facebook / facebook/hhvm

Typechecker friendliness: suggest definitions in other namespaces for 'Unbound name'

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

Description

Current output:

```
/home/fred/user-documentation/src/site/RobotsTxtController.php:5:5,15: Unbound name: LocalConfig (an object type) (Naming[2049])
/home/fred/user-documentation/src/site/RobotsTxtController.php:5:18,21: Was expecting a class (Typing[4026])
/home/fred/user-documentation/src/site/RobotsTxtController.php:7:5,15: Unbound name: LocalConfig (an object type) (Naming[2049])
```

Possibly add something like:

```
Maybe you want \HHVM\UserDocumentation\LocalConfig?
```

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.