PHP_Codesniffer-VariableAnalysis
PHP_Codesniffer-VariableAnalysis copied to clipboard
detect isset() and mark found variables declared
If you have code like
if (isset($foo)) {
$bar = $foo;
}
you already guard yourself against undefined variables. In this case the sniff should treat the variable as if it were declared.