{"action":"closed","issue":{"url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/208","labels_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/208/comments","events_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/208/events","html_url":"https://github.com/Haehnchen/idea-php-symfony2-plugin/issues/208","id":25323971,"number":208,"title":"For loop variable autocompletion","user":{"login":"wojtas","id":800260,"avatar_url":"https://avatars.githubusercontent.com/u/800260?v=3","gravatar_id":"","url":"https://api.github.com/users/wojtas","html_url":"https://github.com/wojtas","followers_url":"https://api.github.com/users/wojtas/followers","following_url":"https://api.github.com/users/wojtas/following{/other_user}","gists_url":"https://api.github.com/users/wojtas/gists{/gist_id}","starred_url":"https://api.github.com/users/wojtas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wojtas/subscriptions","organizations_url":"https://api.github.com/users/wojtas/orgs","repos_url":"https://api.github.com/users/wojtas/repos","events_url":"https://api.github.com/users/wojtas/events{/privacy}","received_events_url":"https://api.github.com/users/wojtas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/labels/fixed","name":"fixed","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-01-09T14:47:48Z","updated_at":"2015-02-21T12:40:48Z","closed_at":"2015-02-21T12:40:48Z","body":"Would it be possible to support variable autocompletion in for loops? \r\n\r\nExample (for demonstration purpose I wrote these two hypothetical classes which illustrate my use case):\r\n\r\n```php\r\nclass MyObject\r\n{\r\n    public function getName() { return 'test'; }\r\n}\r\n\r\nclass MyService\r\n{\r\n    protected $myObjectList;\r\n\r\n    /**\r\n    * @return MyObject[]\r\n    */\r\n    public function getMyObjectList()\r\n    {\r\n        return $this->myObjectList;\r\n    }\r\n}\r\n```\r\n\r\nThen in Twig I have an object which is instance of ```MyService``` class, and it is autocompleted nicely:\r\n\r\n![image](https://f.cloud.github.com/assets/800260/1878491/4410cabe-793c-11e3-8f22-0e5c4b26e831.png)\r\n\r\nbut this single loop element ```module```, even if it has a proper PHPDoc annotation, gets no autocompletion:\r\n\r\n![image](https://f.cloud.github.com/assets/800260/1878508/8546fd82-793c-11e3-94f6-a24a54720db7.png)\r\n\r\n"}}