{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/zephir/issues/1228","repository_url":"https://api.github.com/repos/phalcon/zephir","labels_url":"https://api.github.com/repos/phalcon/zephir/issues/1228/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/zephir/issues/1228/comments","events_url":"https://api.github.com/repos/phalcon/zephir/issues/1228/events","html_url":"https://github.com/phalcon/zephir/issues/1228","id":145510603,"number":1228,"title":"Closure inclusion issues with error Class does not exist at compile time","user":{"login":"ganeshkbhat","id":3424344,"avatar_url":"https://avatars.githubusercontent.com/u/3424344?v=3","gravatar_id":"","url":"https://api.github.com/users/ganeshkbhat","html_url":"https://github.com/ganeshkbhat","followers_url":"https://api.github.com/users/ganeshkbhat/followers","following_url":"https://api.github.com/users/ganeshkbhat/following{/other_user}","gists_url":"https://api.github.com/users/ganeshkbhat/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshkbhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshkbhat/subscriptions","organizations_url":"https://api.github.com/users/ganeshkbhat/orgs","repos_url":"https://api.github.com/users/ganeshkbhat/repos","events_url":"https://api.github.com/users/ganeshkbhat/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshkbhat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-03T15:27:22Z","updated_at":"2016-04-04T12:59:49Z","closed_at":null,"body":"I am trying to use callbacks but get an error when I define the callback with a invoke class.\r\n\r\n```\r\nWarning: Class \"Arrays\\blankCb\" does not exist at compile time in C:\\php2z\\converted\\Arrays\\arrays\\arrays.zep on 38 [nonexistent-class]\r\n\r\n                    let checks =  new blankCb();\r\n        ---------------------------------------^\r\n\r\n```\r\n\r\n```\r\nWarning: Class \"Arrays\\Arrayscall_mapClosureOne\" does not exist at compile time in C:\\php2z\\converted\\Arrays\\arrays\\arrays.zep on 47 [nonexistent-class]\r\n\r\n                let checks =  new Arrayscall_mapClosureOne();\r\n        ----------------------------------------------------^\r\n```\r\n\r\n`blankCb` is a very simple call back. File attached. I have to get round it by manual implementation of the callbacks. I am using PHP 7.0.4, Win10, X64, Apache 2.4\r\n\r\nAny help is welcome.\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32544270-closure-inclusion-issues-with-error-class-does-not-exist-at-compile-time?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [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/205286663","html_url":"https://github.com/phalcon/zephir/issues/1228#issuecomment-205286663","issue_url":"https://api.github.com/repos/phalcon/zephir/issues/1228","id":205286663,"user":{"login":"Jurigag","id":10086991,"avatar_url":"https://avatars.githubusercontent.com/u/10086991?v=3","gravatar_id":"","url":"https://api.github.com/users/Jurigag","html_url":"https://github.com/Jurigag","followers_url":"https://api.github.com/users/Jurigag/followers","following_url":"https://api.github.com/users/Jurigag/following{/other_user}","gists_url":"https://api.github.com/users/Jurigag/gists{/gist_id}","starred_url":"https://api.github.com/users/Jurigag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jurigag/subscriptions","organizations_url":"https://api.github.com/users/Jurigag/orgs","repos_url":"https://api.github.com/users/Jurigag/repos","events_url":"https://api.github.com/users/Jurigag/events{/privacy}","received_events_url":"https://api.github.com/users/Jurigag/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T12:59:49Z","updated_at":"2016-04-04T12:59:49Z","body":"What you mean ? Just change Arrayscall_skipClosureOne to Arrayscall_skipClosureZero and it should work.\r\n\r\nWhat error you have after changing it ?"}}