Skip to content

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
Development

Successfully merging this pull request may close these issues.

Null coalescence and casting precendence
2 participants