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

Add assertion for exception type #2094

Merged
merged 1 commit into from
Jul 4, 2022
Merged

Conversation

franmomu
Copy link
Contributor

Instead of ignored the error in PHPStan, adding the assertInstanceOf allows PHPStan to understand the rest of the code.

Ref: #2090 (comment)

@franmomu franmomu closed this Jun 29, 2022
@franmomu franmomu reopened this Jun 29, 2022
@deguif deguif merged commit f72262d into ruflin:master Jul 4, 2022
@franmomu franmomu deleted the assert_instance branch July 4, 2022 12:35
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.

2 participants