Skip to content
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

Option/Either: Add value or throw methods #52

Merged
merged 4 commits into from
Dec 21, 2022
Merged

Conversation

jarstelfox
Copy link
Contributor

Connects: #43

This allows for easy catching
Psalm is complaining that we know we will throw and the lines below are unreachable
secrectly phpunit is catching and continuing.
It ends up the psalm warnings were useful in the last commit:

PHPUnit was quiting after the first throw exception.

To do more assertions, I am manually catching and checking.
@jarstelfox jarstelfox merged commit 5abacf7 into master Dec 21, 2022
@jarstelfox jarstelfox deleted the value-or-throw branch December 21, 2022 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant