{"action":"created","issue":{"url":"https://api.github.com/repos/twigphp/Twig/issues/2725","repository_url":"https://api.github.com/repos/twigphp/Twig","labels_url":"https://api.github.com/repos/twigphp/Twig/issues/2725/labels{/name}","comments_url":"https://api.github.com/repos/twigphp/Twig/issues/2725/comments","events_url":"https://api.github.com/repos/twigphp/Twig/issues/2725/events","html_url":"https://github.com/twigphp/Twig/issues/2725","id":344130537,"node_id":"MDU6SXNzdWUzNDQxMzA1Mzc=","number":2725,"title":"make AST public (or provide a RecursiveArrayIterator)","user":{"login":"drzraf","id":1169926,"node_id":"MDQ6VXNlcjExNjk5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1169926?v=4","gravatar_id":"","url":"https://api.github.com/users/drzraf","html_url":"https://github.com/drzraf","followers_url":"https://api.github.com/users/drzraf/followers","following_url":"https://api.github.com/users/drzraf/following{/other_user}","gists_url":"https://api.github.com/users/drzraf/gists{/gist_id}","starred_url":"https://api.github.com/users/drzraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drzraf/subscriptions","organizations_url":"https://api.github.com/users/drzraf/orgs","repos_url":"https://api.github.com/users/drzraf/repos","events_url":"https://api.github.com/users/drzraf/events{/privacy}","received_events_url":"https://api.github.com/users/drzraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-24T17:22:40Z","updated_at":"2018-07-24T17:40:17Z","closed_at":null,"author_association":"NONE","body":"I'd like to inspect the AST of a source.\r\n* `$nodes` is [protected](https://github.com/twigphp/Twig/blob/2.x/lib/Twig/Node.php#L20)\r\n* [getIterator](https://github.com/twigphp/Twig/blob/2.x/lib/Twig/Node.php#L167 ) only returns a `simple` iterator rather than a `RecursiveArrayIterator`.\r\nUnless workaround exist, it would be nice to make `$nodes` available for reading.\r\n"},"comment":{"url":"https://api.github.com/repos/twigphp/Twig/issues/comments/407491117","html_url":"https://github.com/twigphp/Twig/issues/2725#issuecomment-407491117","issue_url":"https://api.github.com/repos/twigphp/Twig/issues/2725","id":407491117,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQ5MTExNw==","user":{"login":"nicolas-grekas","id":243674,"node_id":"MDQ6VXNlcjI0MzY3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/243674?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-grekas","html_url":"https://github.com/nicolas-grekas","followers_url":"https://api.github.com/users/nicolas-grekas/followers","following_url":"https://api.github.com/users/nicolas-grekas/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-grekas/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-grekas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-grekas/subscriptions","organizations_url":"https://api.github.com/users/nicolas-grekas/orgs","repos_url":"https://api.github.com/users/nicolas-grekas/repos","events_url":"https://api.github.com/users/nicolas-grekas/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-grekas/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T17:40:17Z","updated_at":"2018-07-24T17:40:17Z","author_association":"CONTRIBUTOR","body":"Did you try using toArray? It should allow what you want I think."}}
{"actor":{"display_login":"nicolas-grekas"}}