clue
left a comment
โข
edited
Loading
edited
clue
left a comment
โข
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changeset looks reasonable to me, but just one question: Is is common knowledge that Throwable is the base of Exception or should we perhaps make this more explicit? It's my understanding most common use cases would likely reject a promise with a subclass of Exception such as RuntimeException (and family) and it might make sense to keep this as a search keyword in the documentation?
Member Author
Good point, i will try to rework the docs ๐ . But we must make sure to not recommend \Exception as type-declarations in callbacks. Used eg. in otherwise() callbacks, this might lead to uncaught \Error's.
Member
I concur, adding Throwable as the type hint and adding explicit docs for Exception seems to be the best solution here ๐
Member
@clue added a short paragraph about Throwable vs Exception.
clue approved these changes Oct 6, 2019
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update, changes LGTM! ๐ฏ
jsor deleted the throwable-rejection-readme-fixes branch
October 8, 2019 19:29
valga
mentioned this pull request
Closed