facebook/xhp — Issue #30: Invalid result for anonymous function
Author: char101
Created: 2011-12-20 08:55:44+00:00
State: open

Input code

```php
attr->call("arg", $something);
$a = function() { return 10; };

invoke()['xhp'];
```

Result code (using xhpize)

```php
attr->call("arg",$something);
$a=function()->call("arg",$something){return 10;};

__xhp_idx(invoke(), 'xhp');
```