InvalidThrowsPhpDocValueRule: support @require-extends, @require-implements#2890
Conversation
|
Fixed the implementation, see my commits. |
|
This pull request has been marked as ready for review. |
|
Thank you. |
|
Thank you. I more or less had the same in mind for handling unions (check of |
|
does this PR also needs support in (similar how it was done with #2866) |
|
I don't know. Maybe when the class in require-extends starts/stops being a Throwable we get a stale cache. You can always verify your hypothesis with a failing test 😊 |
Handle / support
@throwstypes which are annotated with@phpstan-require-extendsor@phpstan-require-implements.Fixes phpstan/phpstan#10475
Currently this is a WIP as support for intersections and unions is lacking and this is more like a "support request" on how I can support this.