Skip to content

Ban overwriting a parameter in Hack #3816

Open
@fredemmott

Description

@fredemmott
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions