Ban overwriting a parameter in Hack
Open
feature request
hack
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
``` PHP
function foo($bar) {
...
$bar = '123';
...
}
```
This is generally confusing and makes stuff harder to debug; it also makes func_get_args()/debug_backtrace() lie in PHP7 and HHVM.
Contributor guide
Assessment
This issue has not been assessed yet.