Can I make phpstorm not add `@throws` tag when I add phpdocs?

When PhpStorm is able to figure out the `@throws` of e.g. function or method, it adds them.

Is there a way to generally / per project disable this entirely?

I just don't want any throws phpdocs.

 

thanks!

0
3 comments

I am afraid, there's no such way at the moment, and there's no existing request for disabling certain PHPDoc tags.
Please submit this as a feature request: https://youtrack.jetbrains.com/newIssue?project=WI

0

Eugene Morozov I found a workaround :-)

In "PHP / Analysis" I can set "Unchecked Exception" to \Throwable which includes ALL of them and this means I get no throws tags anymore, even if the exception is within the same method:

3

That's embarrassing :) Thank you for sharing the workaround!

0

Please sign in to leave a comment.