Skip to content

Warning when static method name is 'default' #1239

@chriskicker

Description

@chriskicker

I get WARNING
Possible parse error: non-abstract method defined as abstract
My test method is:

public static function default(): ObjectA { return new self(1); } 

I use squizlabs/php_codesniffer is 2.7.1

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