Community
Participate
Working Groups
have the next code in editor: <?php function foo(array $first, int $second){ return $third; } ?> Right click on the function foo in PHP Explorer -> Source -> Generate element comments Expected: Generated doc block should be: /** * Enter description here... * *@param array $first *@param int $second *@return unknown */ Actual: /** * @param $first * @param $second * @return unknown_type */ Here the topic is the missing types in doc block: int and array About the missing part "Enter description here..." there is an opened bug: #254762
Found in N20081112
Created attachment 128843 [details] patch for the missing parameter type. patch for the missing parameter type.
About the missing part "Enter description here..." from the menu Windows->Preferences->PHP->Templates select methodcomment on the right table double clicked or click on the edit button on the right of the table replace /** * ${tags} */ with /** * Enter description here... * * ${tags} */
Thanks for your contribution, two things though: 1. any contribution should be applied by a patch. to create a patch click on the project/s that you changed and click, team -> create patch. Attach the generated file as patch 2. about the template change, you can edit the templates in org.eclipse.php.ui\templates\phpdefault-templates.xml - this patch should include this change. Many thanks!
ok,i have created a patch.
Created attachment 128879 [details] hey! attached is the patch
Created attachment 128880 [details] hey! attached is the patch the patch is about tow file,CodeGeneration.java and phpdefault-templates.xml
Thanks you very much, committed to HEAD contributed by zhongwei zhao
re-tested in M6 - verified fixed. Thanks Zhao, well done!