php-enum icon indicating copy to clipboard operation
php-enum copied to clipboard

Simple and fast implementation of enumerations with native PHP

Results 4 php-enum issues
Sort by recently updated
recently updated
newest added
trafficstars

https://github.com/phan/phan/wiki/Annotating-Your-Source-Code documents the available options. https://github.com/phan/phan/wiki/About-Union-Types documents union types supported by Phan. `non-empty-string` is not supported in array keys.

If a constant already exists in the inherited class, then it cannot be redefined. Which leads to the error.

Not sure why exactly `getValue` method is final. I want to be able to specify exactly which type is returned there without using php doc. So would like to override...

**Detailed description:** The methods in [Enum](https://github.com/marc-mabe/php-enum/blob/master/src/Enum.php) class related to serialization have the following sentence in the doc block: `Enums are not serializable because instances are implemented as singletons`. When I...

doc