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.
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.