4 comments
Comment actions Permalink

Hi,

Yes, it's enabled by default. Inspection is: PHP | Php Inspections (EA Extended) | Control Flow | General '\Exception' is thrown.

0
Comment actions Permalink

Note that Php Inspections (EA Extended) plugin should be installed for this inspection to appear.

0
Comment actions Permalink

Hi.

 

I installed the plugin and the option is enabled.

Now, all try are marked with warning. The message of warning is:

"Consider moving non-related statements outside the try-block or refactoring try-body into a function/method"

 

Kind regards

Justo

 

 

 

0
Comment actions Permalink

Hi,

 

This seems to be "PHP | Php Inspections (EA Extended) | Architecture | Badly organized exception handling" inspection. You can disable it there (and every other EA Extended inspection if you need only to detect empty catch blocks).

0

Please sign in to leave a comment.