Skip to content

Conversation

@Boldewyn
Copy link

@Boldewyn Boldewyn commented Oct 8, 2015

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.

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.
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.

1 participant