Phpshtorm not mark when expression is always false

Phpshtorm not mark when expression is always false. Jetbrains Rider mark it is.

0
3 comments

Could you please share a code example and illustrate what should be marked there?

0
Avatar
Permanently deleted user

Vasiliy Yur

in Rider, I see that the inspection marks the expression:

if(!true)
{
var test = 1;
}

It would be cool to see the same in a Phpshtorm. I want to see marked this:

private function func(array $params): void
{
if($params === null) {
//This expression will always be false. I would like to see it in IDE.
}
}

 

0

Please sign in to leave a comment.