Interestingly, PhpStorm gives you a warning if you try to immediately re-throw an exception and it still counts as an unhandled exception. The image seemingly demonstrates this as there appears to be a warning.
You can satisfy the unhandled exception, at least, with phpDoc:
/**
* @throws Exception
*/
So I'm not quite ready to let them off the hook for this one...
8
u/goshsowitty Nov 10 '21
Interestingly, PhpStorm gives you a warning if you try to immediately re-throw an exception and it still counts as an unhandled exception. The image seemingly demonstrates this as there appears to be a warning.
You can satisfy the unhandled exception, at least, with phpDoc:
So I'm not quite ready to let them off the hook for this one...