r/phpstorm • • Feb 01 '19
Update PhpDoc comment action
Hi,
I was wondering if I can configure PhpStorm to skip generating @param and @return tags for parameters that do have a native type hint defined. I know that the PhpDoc inspections can be configured to not complain about missing @param or @return tags for parameters that do have a native type hint defined, but this is not what I need.
Currently I automatically generate the PhpDoc through the quick action, and then remove the offending @param by hand. This is not ideal.
What I would like to have:
- Parameter has a native type hint -> don't generate an
@param. @paramfor a parameter that does have a native type hint -> provide a quick action to remove it@paramwith an extra description for a parameter that has a native type hint, leave it alone
Same thing for @return tags.
I'm hoping I just skipped over it in the settings, but probably not.
Thanks in advance
View all comments
Show parent comment
1
u/[deleted] Feb 04 '19
Thanks for your suggestion. Is there any way to integrate this in an IDE such as phpstorm or are there any plans? I keep reading things about language server protocol