Feature Description
Consider this method:
/**
* @throws Exception
*/
public function foo(): void
{
// ...
throw new Exception("Oh no!");
// ...
}
If this method is called somewhere and there is no try...catch wrapping it, PhpStorm will suggest either wrapping the call in a try...catch or adding @throws Exception to the PHPDoc of the caller.
If you wrap the method call in Laravel's helper rescue however, no exception is thrown - at least not unless the fallback is a method that itself throws own exceptions, but PhpStorm still thinks an exception is thrown.
Do you think it would make sense for Laravel Idea to stop PhpStorm from thinking the caller throws an exception?
Feature Description
Consider this method:
If this method is called somewhere and there is no
try...catchwrapping it, PhpStorm will suggest either wrapping the call in atry...catchor adding@throws Exceptionto the PHPDoc of the caller.If you wrap the method call in Laravel's helper
rescuehowever, no exception is thrown - at least not unless the fallback is a method that itself throws own exceptions, but PhpStorm still thinks an exception is thrown.Do you think it would make sense for Laravel Idea to stop PhpStorm from thinking the caller throws an exception?