Skip to content

PEAR.Functions.FunctionCallSignature sniff not checking all function calls #589

@aik099

Description

@aik099

Code fragment:

if ( isset( $validation_data['address']) ) {
    $a = 5;
}

isset( $validation_data['address']);

If appears, that PEAR.Functions.FunctionCallSignature sniff isn't checking that there is 0 spaces after opening parenthesis of "isset" function call, when it's placed within a control structure.

After some digging I've found, that this has something to do with "isset" function call specifically. If I replace "isset" with "array_values" or "some_func", then all is reported/fixed properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions