Skip to content

Variadics not recognized by tokenizer #310

@aurora

Description

@aurora

It seems that variadics -- available in php since 5.6 -- are not recognized by the tokenizer. For example for the line of code:

public function enum($value, ...$items)

i get the following wrong error message (PSR-2 standard):

Expected 1 space between comma and argument "$items"; 0 found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions