With the addition of closures for forbidCheckedExceptionInYieldingMethod, there's now some overlap with forbidCheckedExceptionInCallable.
For example, Guzzle's Coroutine class accepts a generator and handles all exceptions. I've excluded it for forbidCheckedExceptionInCallable using allowedCheckedExceptionCallables:
forbidCheckedExceptionInCallable:
allowedCheckedExceptionCallables:
'GuzzleHttp\Promise\Coroutine::of': [0]
Now I need something similar for forbidCheckedExceptionInYieldingMethod. (Because of the nature of async/promises, it's not @param-immediately-invoked-callable.) I could see this reusing allowedCheckedExceptionCallables, but it might make more sense to duplicate that config:
forbidCheckedExceptionInYieldingMethod:
allowedCheckedExceptionCallables:
'GuzzleHttp\Promise\Coroutine::of': [0]
Hopefully that all makes sense. Thoughts?
With the addition of closures for
forbidCheckedExceptionInYieldingMethod, there's now some overlap withforbidCheckedExceptionInCallable.For example, Guzzle's Coroutine class accepts a generator and handles all exceptions. I've excluded it for
forbidCheckedExceptionInCallableusingallowedCheckedExceptionCallables:Now I need something similar for
forbidCheckedExceptionInYieldingMethod. (Because of the nature of async/promises, it's not@param-immediately-invoked-callable.) I could see this reusingallowedCheckedExceptionCallables, but it might make more sense to duplicate that config:Hopefully that all makes sense. Thoughts?