Community
Participate
Working Groups
Build ID: M20080221-1800 Steps To Reproduce: PHPDoc code completion works very well in the case that you create the doc comment after creating the function. However it's not so easy when modifying a function that already has docs, or when trying to write the docs before writing the function. See more info for a few suggestions for possible improvements to PHPDoc code completion for those other situations. More information: /** * @param | <- suggest 'Type1 $v1' or 'Type2 $v2' */ function myFunc(Type1 $v1, Type2 $v2) {...} /** * @param | <- suggest all known types */ function myFunc() {...} /** * @param Blah| <- suggest types starting with Blah */ function myFunc() {...} /** * @return | <- suggest known types */ function myFunc() {...} /** * @return Blah| <- suggest types starting with Blah */ function myFunc() {...} /** * @var | <- suggest known types */ var $someVar; /** * @var Blah| <- suggest types starting with Blah */ var $someVar; foreach ($array as $someVar) { /* @var $| <- suggest in scope variables } foreach ($array as $someVar) { /* @var $someVar | <- suggest known types } foreach ($array as $someVar) { /* @var $someVar Blah| <- suggest types starting with Blah }