Skip to content

PEAR.Functions.FunctionCallSignature false positive for array of functions #2877

@VincentLanglet

Description

@VincentLanglet

The following code

$a = ['a' => function ($b) { return $b; }];
$a['a']( 1 );

Return no error for the extra space after the opening and before the closing parentheses.

Since the ( is correctly ignored in the Generic.WhiteSpace.ArbitraryParenthesesSpacing, this should be handle in the FunctionCallSignatureSniff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions