{"action":"created","issue":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/397","repository_url":"https://api.github.com/repos/nikic/PHP-Parser","labels_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/397/comments","events_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/397/events","html_url":"https://github.com/nikic/PHP-Parser/issues/397","id":241865116,"number":397,"title":"Deprecated Name->parts","user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars0.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-10T22:00:58Z","updated_at":"2017-07-10T22:46:22Z","closed_at":null,"body":"```php\r\nnamespace PhpParser\\Node;\r\n\r\nuse PhpParser\\NodeAbstract;\r\n\r\nclass Name extends NodeAbstract\r\n{\r\n   /**\r\n     * @var string[] Parts of the name\r\n     * @deprecated Avoid directly accessing $parts, use methods instead.\r\n     */\r\n    public $parts;\r\n\r\n    //...\r\n}\r\n```\r\n\r\nHowever if you want to calculate the number of parts the name has you have no choice but to do:\r\n\r\n```php\r\ncount($node->parts)\r\n```\r\n\r\nWhich requires access to the deprecated  `parts` property. Should we make `Name` implement `Countable`?"},"comment":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/comments/314271471","html_url":"https://github.com/nikic/PHP-Parser/issues/397#issuecomment-314271471","issue_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/397","id":314271471,"user":{"login":"nikic","id":216080,"avatar_url":"https://avatars0.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T22:46:22Z","updated_at":"2017-07-10T22:46:22Z","body":"What do you use the number of parts for?"}}
{"actor":{"display_login":"nikic"}}