]> khamidou — GitHub mirrors - arcanist.git/commit
Don't record anonymous functions into the symbol map
authorepriestley <git@epriestley.com>
Fri, 9 Mar 2012 23:45:47 +0000 (15:45 -0800)
committerepriestley <git@epriestley.com>
Fri, 9 Mar 2012 23:45:47 +0000 (15:45 -0800)
commit6a7b1a7bddb2640c2daac879c10c2717a4c946e4
tree621c1fb4ac71cec8c002f8d95bbad82d7cd8069a
parent36709ece41ca1f758497e5ec117c8fd8934c0a45
Don't record anonymous functions into the symbol map

Summary:
Although we currently forbid anonymous functions, some day we will likely permit them, and our behavior for them is wrong.

Handle them correctly rather than throwing an exception because we should be covered by D1846 against accidental use, and we won't be on PHP 5.2 forever.

Test Plan: Ran against a test file with anonymous functions. Before, it emitted a declaration of a nameless function; afterward, it did not.

Reviewers: btrahan, edward

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T963

Differential Revision: https://secure.phabricator.com/D1847
scripts/phutil_analyzer.php