Replies: 1 comment 3 replies
-
|
you can mark your own exceptions as checked and vendor exceptions as unchecked |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Regarding exceptions, and the setting
exceptions.missingCheckedExceptionInThrowsif I set it totrue, is there any way for PHPStan to report an error only if I throw an exception in my own code, that is not documented in the corresponding method's/function's PHPDoc?I would not want to document errors thrown by third party (vendor) code that I use, but I would like to make sure I document all errors that I throw in the code I write.
I'm not sure if this is possible.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions