Is there a way to trigger a warning when a method throwing an exception is called without catching it?
Hello,
I would like to know if there is something that PhpStorm can do to warn me if I call a method or function that triggers an exception (declared in a @throw annotation) without catching it? Basically like Java.
Thank you !
PS: I use PhpStorm 2016.3.2
Please sign in to leave a comment.
Hi there,
Please install "Php Inspections (EA Extended)" plugin -- one of the many inspections it provides does just that.
Example:
Awesome! Thanks :)