{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/zephir/issues/888","repository_url":"https://api.github.com/repos/phalcon/zephir","labels_url":"https://api.github.com/repos/phalcon/zephir/issues/888/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/zephir/issues/888/comments","events_url":"https://api.github.com/repos/phalcon/zephir/issues/888/events","html_url":"https://github.com/phalcon/zephir/issues/888","id":68347689,"number":888,"title":"Closure issue [$25]","user":{"login":"wskdf","id":4066880,"avatar_url":"https://avatars.githubusercontent.com/u/4066880?v=3","gravatar_id":"","url":"https://api.github.com/users/wskdf","html_url":"https://github.com/wskdf","followers_url":"https://api.github.com/users/wskdf/followers","following_url":"https://api.github.com/users/wskdf/following{/other_user}","gists_url":"https://api.github.com/users/wskdf/gists{/gist_id}","starred_url":"https://api.github.com/users/wskdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wskdf/subscriptions","organizations_url":"https://api.github.com/users/wskdf/orgs","repos_url":"https://api.github.com/users/wskdf/repos","events_url":"https://api.github.com/users/wskdf/events{/privacy}","received_events_url":"https://api.github.com/users/wskdf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phalcon/zephir/labels/bounty","name":"bounty","color":"129e5e"},{"url":"https://api.github.com/repos/phalcon/zephir/labels/NFR","name":"NFR","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-14T11:41:53Z","updated_at":"2016-05-05T01:46:54Z","closed_at":null,"body":"Zephir\\ParseException: Syntax error in *******.zep on line 10\r\n\r\n\t  let result = array_filter(array_keys(all_list), function(item) use (only_list) {\r\n\t-------------------------------------------------------------------^\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nThere is a **[$25 open bounty](https://www.bountysource.com/issues/11118496-closure-issue?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/phalcon/zephir/issues/comments/217056355","html_url":"https://github.com/phalcon/zephir/issues/888#issuecomment-217056355","issue_url":"https://api.github.com/repos/phalcon/zephir/issues/888","id":217056355,"user":{"login":"coollider","id":5774766,"avatar_url":"https://avatars.githubusercontent.com/u/5774766?v=3","gravatar_id":"","url":"https://api.github.com/users/coollider","html_url":"https://github.com/coollider","followers_url":"https://api.github.com/users/coollider/followers","following_url":"https://api.github.com/users/coollider/following{/other_user}","gists_url":"https://api.github.com/users/coollider/gists{/gist_id}","starred_url":"https://api.github.com/users/coollider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coollider/subscriptions","organizations_url":"https://api.github.com/users/coollider/orgs","repos_url":"https://api.github.com/users/coollider/repos","events_url":"https://api.github.com/users/coollider/events{/privacy}","received_events_url":"https://api.github.com/users/coollider/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T01:46:54Z","updated_at":"2016-05-05T01:46:54Z","body":"Right now it can't be added to zephir, becouse anonimus functions in zephir it is not `Closure` like in php, it is simple function name. When you write in zephir. \r\n```php\r\nreturn array_map(function(var item){ return item + 1; }, value);\r\n```\r\nZephir simple create new function with unredable name, like: \r\n```php\r\nfunction func_101193d7181cc88340ae5b2b17bba8a1(var item) {\r\n  return item + 1;\r\n}\r\n```\r\nand then use it\r\n```php\r\nreturn array_map('func_101193d7181cc88340ae5b2b17bba8a1', value);\r\n```"}}