VKCOM / noverify

Pretty fast linter (code static analysis utility) for PHP
MIT License
673 stars 57 forks source link

linter: improved `undefinedVariable` and `maybeUndefined` checkers #1121

Closed i582 closed 3 years ago

i582 commented 3 years ago

In the following cases:

$undefinedVar ?? 100
isset($undefinedVar)

no need to throw a warning about an undefined variable, since these constructs are used to check that the variable is defined.

Fixes #1007