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

Respect asserts and throws on pure functions that return void #3719

Open
wants to merge 3 commits into
base: 2.1.x
Choose a base branch
from

Conversation

jack-worman
Copy link
Contributor

@jack-worman jack-worman commented Dec 10, 2024

Fixes some of the problems from phpstan/phpstan#12224

This should now be fixed: https://phpstan.org/r/852dd5b6-e76c-41ed-a0fb-7b1a46b0900f

@jack-worman jack-worman marked this pull request as draft December 10, 2024 04:03
@jack-worman jack-worman force-pushed the Assert-and-throws-are-side-effects branch from bde30fc to 1fd854f Compare December 12, 2024 02:19
@jack-worman jack-worman changed the title Assert-and-throws-are-side-effects Respect asserts and throws on pure functions that return void Dec 12, 2024
@jack-worman jack-worman marked this pull request as ready for review December 12, 2024 02:25
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@jack-worman jack-worman force-pushed the Assert-and-throws-are-side-effects branch from 1fd854f to 5335a05 Compare December 14, 2024 02:44
@jack-worman jack-worman force-pushed the Assert-and-throws-are-side-effects branch from 5335a05 to 8af8b0b Compare December 15, 2024 17:02
@jack-worman jack-worman changed the base branch from 2.0.x to 2.1.x December 23, 2024 13:34
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