-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change doc comment to throw ResultException #8
Comments
Btw: Great library. We now only need the ?-operator 😄 |
I thought so too, while improve phpdocs. See: Line 224 in 70add2d
|
Ah, yeah. Of course. That makes sense. Thank you for the answer. |
Ah, yeah I think my reasoning was that "it throws something that is or extends |
unwrap()
appears to throw aResultException
on error, but the doc comment mentions\Exception
(see https://github.com/prewk/result/blob/master/src/Result.php#L164).Is it possible to change the doc comment?
In the IDE PhpStorm this would be handy to add
ResultException
to the list of "Unchecked Exceptions".The text was updated successfully, but these errors were encountered: