facebook / facebook/hhvm

Ban overwriting a parameter in Hack

Open
#3,816 14 comments 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

``` 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

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.