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

Make Prophecy Exceptions throwable #519

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

ciaranmcnulty
Copy link
Member

Constrains implementors of the interface to actually be Throwables. This prevents potential errors, and static analysis warnings when catching the interface (as the interface isn't itself throwable previously).

This wasn't possible in PHP 5, but we no longer support it. As a result getMessage does not need to be part of the interface, but also can't be mocked in tests

Constrains implementors of the interface to actually be Throwables. This prevents potential errors, and static analysis warnings when catching the interface (as the interface isn't itself throwable previously).

This wasn't possible in PHP 5, but we no longer support it. As a result getMessage does not need to be part of the interface, but also can't be mocked in tests
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.

None yet

2 participants