-
Notifications
You must be signed in to change notification settings - Fork 672
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 BitwiseNot and BooleanNot operators to SimpleTypeInferer #8360
Add BitwiseNot and BooleanNot operators to SimpleTypeInferer #8360
Conversation
e602d1b
to
f782313
Compare
Wow, I can't believe how your username is fitting with this PR! I even went to check on your profile whether every previous issue you opened here was also related to bitwise operators or not 😄 |
src/Psalm/Internal/Analyzer/Statements/Expression/SimpleTypeInferer.php
Outdated
Show resolved
Hide resolved
Could you add a couple of tests for these cases (probably in ConstantTest.php)? LGTM after that's done. |
…ean-not class constants
Done. I also added tests for two other missing bitwise operators. |
Thanks! |
BitwiseNot
andBooleanNot
operators were missing from theSimpleTypeInferer
. This PR adds them.This should fix #8307.
Thanks to @AndrolGenhald for pointing me in the right direction.