Releases: myclabs/php-enum
Releases · myclabs/php-enum
1.7.2
Fixed #95 with #97: handle inherited enums
1.7.1
- Compatibility with PHP 7.1
- #90 New PHPUnit comparator to help with tests
1.7.0
- #88: require PHP 7.2 + add a return type to the
equals()
method
- #87: the
equals()
method now accepts anything as a parameter
- #86: compatibility with php-ds/ext-ds
1.6.6
#84 Require ext-json
explicitly in composer.json
to avoid bugs when the JSON extension is not installed
1.6.5
#83: It is now possible to create a new Enum instance from another Enum instance
1.6.3
Fix #77 #78: better support for null
values in enums.
1.6.2
#75 Performance optimizations
1.6.1
#71 Allow null
in the equals()
method
1.6.0
- Drop support for PHP 5.3 (only 5.4+ is supported)
- Implement
JsonSerializable
interface to allow serializing the class to JSON