{"action":"created","issue":{"url":"https://api.github.com/repos/nette/forms/issues/77","labels_url":"https://api.github.com/repos/nette/forms/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/nette/forms/issues/77/comments","events_url":"https://api.github.com/repos/nette/forms/issues/77/events","html_url":"https://github.com/nette/forms/pull/77","id":68353580,"number":77,"title":"Update ChoiceControl.php","user":{"login":"jack06","id":7429291,"avatar_url":"https://avatars.githubusercontent.com/u/7429291?v=3","gravatar_id":"","url":"https://api.github.com/users/jack06","html_url":"https://github.com/jack06","followers_url":"https://api.github.com/users/jack06/followers","following_url":"https://api.github.com/users/jack06/following{/other_user}","gists_url":"https://api.github.com/users/jack06/gists{/gist_id}","starred_url":"https://api.github.com/users/jack06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack06/subscriptions","organizations_url":"https://api.github.com/users/jack06/orgs","repos_url":"https://api.github.com/users/jack06/repos","events_url":"https://api.github.com/users/jack06/events{/privacy}","received_events_url":"https://api.github.com/users/jack06/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-14T12:15:54Z","updated_at":"2015-04-14T13:19:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nette/forms/pulls/77","html_url":"https://github.com/nette/forms/pull/77","diff_url":"https://github.com/nette/forms/pull/77.diff","patch_url":"https://github.com/nette/forms/pull/77.patch"},"body":"You should use array_combine due to PHP bug. \r\n\r\nExample:\r\n$obj = new stdClass();\r\n$obj->{\"foo\"} = \"bar\";\r\n$obj->{\"0\"} = \"zero\";\r\n$arr = (array)$obj;\r\n\r\n//foo -- bar\r\n//0 --    {error: undefined index}\r\nforeach ($arr as $key=>$value){\r\n    echo \"$key -- \" . $arr[$key] . \"\\n\";\r\n}"},"comment":{"url":"https://api.github.com/repos/nette/forms/issues/comments/92824905","html_url":"https://github.com/nette/forms/pull/77#issuecomment-92824905","issue_url":"https://api.github.com/repos/nette/forms/issues/77","id":92824905,"user":{"login":"dg","id":194960,"avatar_url":"https://avatars.githubusercontent.com/u/194960?v=3","gravatar_id":"","url":"https://api.github.com/users/dg","html_url":"https://github.com/dg","followers_url":"https://api.github.com/users/dg/followers","following_url":"https://api.github.com/users/dg/following{/other_user}","gists_url":"https://api.github.com/users/dg/gists{/gist_id}","starred_url":"https://api.github.com/users/dg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg/subscriptions","organizations_url":"https://api.github.com/users/dg/orgs","repos_url":"https://api.github.com/users/dg/repos","events_url":"https://api.github.com/users/dg/events{/privacy}","received_events_url":"https://api.github.com/users/dg/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T13:19:40Z","updated_at":"2015-04-14T13:19:40Z","body":"So it is problem in your code, do not use `(array)`."}}