Wrong "Throws non-annotated/unhandled exception" inspection triggering

On PhpStorm 2018.1.1 I have wrong triggering of "Throws non-annotated/unhandled exception" inspection.

 

I have SubscribersRepositoryException which extends \Exception.

When a throw this exception, I get inspection triggering with message "Throws non-annotated/unhandled exception: '\Exception'".

And I have such messages with all my exceptions, not only those which extends from \Exception.

 

Here's another example:

 

Is it error?

3 comments

Eugene Morozov, i don't think so.

This inspection is opening when I press Alt+Enter → "Edit inspection profile setting".

Seems like bug in standard PhpStorm's inspections.

0

Please sign in to leave a comment.