Skip to content

getDefaultValue refers to self instead of static #3

Description

@tuscanicz

The getDefaultValue method returns always null, since it refers to self instead of static.

AbstractEnum::getDefaultValue()

I have never used default values but I think it should have never worked correctly. I found the bug by writing unit tests in my fork of your library: https://github.com/tuscanicz/enum

I am not planning to send you a pull request, since my fork is using strict comparison contrary to your version. However, if you thing this would meet your requirements, I'll create the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions