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

added dataflow to stringy bitwise op, bitwise not op (fix #5957) #6084

Merged
merged 2 commits into from
Jul 13, 2021

Conversation

elnoro
Copy link
Contributor

@elnoro elnoro commented Jul 13, 2021

Hello

Fixes #5957

It appears addDataFlow was never called for bitwise operators with stringy (hasString() == true) operands.
And I could not find an implementation of "addDataflow" for unary operators, so I added one in BitwiseNotAnalyzer.

Added snippets from the original issue as a test and ran psalm on brick/math - no more UnusedVariable errors.

@weirdan weirdan merged commit be73f74 into vimeo:master Jul 13, 2021
@weirdan
Copy link
Collaborator

weirdan commented Jul 13, 2021

Thanks!

@elnoro elnoro deleted the fix-5957 branch July 14, 2021 19:54
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.

UnusedVariable false positive
2 participants