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 Psalm understand infinite while loop in control actions #6392

Merged
merged 6 commits into from
Sep 4, 2021

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Sep 2, 2021

This PR fixes #6386

What it does is making Psalm understand that if a while loop has a true in its condition, then it won't have an exit path.

@orklah orklah marked this pull request as draft September 2, 2021 21:44
@orklah orklah marked this pull request as ready for review September 4, 2021 12:19
@weirdan weirdan merged commit 3a3fde3 into vimeo:master Sep 4, 2021
@weirdan
Copy link
Collaborator

weirdan commented Sep 4, 2021

Thanks!

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.

InvalidReturnType incorrect error
2 participants