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

improvements of alwaysTruthy/alwaysFalsy #6518

Merged
merged 11 commits into from Oct 4, 2021
Merged

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Sep 22, 2021

this fixes an error I introduced in a previous PR. The continue was not enough to exit both loops

@orklah orklah changed the title fix error on continue in alwaysTruthy improvements of alwaysTruthy/alwaysFalsy Sep 22, 2021
@orklah
Copy link
Collaborator Author

orklah commented Sep 22, 2021

I hijacked this PR to add some smarts to BooleanNot who was always resulting in TBool, no matter what the expression inside was

@orklah
Copy link
Collaborator Author

orklah commented Sep 22, 2021

I added still more features in this PR, Psalm was unable to detect those if(rand(0,1) || true){} as redundant. It's now the case

@orklah orklah requested a review from weirdan September 22, 2021 18:36
@orklah orklah merged commit 0e83afd into vimeo:master Oct 4, 2021
@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants