Skip to content

Unused global variable when using list #89

@kkmuffme

Description

@kkmuffme
function abc() {
    global $test;
    list( $test, $example ) = my_function( $_POST );

    return $example;
}

will report:
Unused global variable $test.

But it isn't unused, since we assign a new value to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions