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

Add InvalidNullCoalesce as level 4 rule #70

Closed

Conversation

BackEndTea
Copy link
Contributor

Fixes phpstan/phpstan#2371 & phpstan/phpstan#2504

I've implemented it as a level 4 rule, as that is where other 'always true & always false' rules are.

There is probably some cs issues in here as i couldn't get cs-fixer to run on php 7.4 on my local machine.

If this looks good i'll go ahead and fix the issues found by this new rule as well

@BackEndTea
Copy link
Contributor Author

On a related note, this will things like #69

@ondrejmirtes
Copy link
Member

Hi, thank you, but there's already #36 which is a little bit more advanced (but still needs some work).

@BackEndTea
Copy link
Contributor Author

My bad, didn't see that. Feel free to close this in favor of the other PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants