Konekt Enum Changelog
- Dropped PHP 7.1 and 7.2 support
- Added PHP 8 support
- Adopted PSR-12 Coding style (internally)
__defaultconst has been renamed to
__DEFAULTfor full PSR-1 compliance.
- It is possible to set fallback to default for unknown values.
- Rest of features are equivalent to v2.2.0.
- PHP 7.0 support has been dropped.
- Early PHP 7.4 support (as-is - since it hasn't been released yet).
- It is possible to set fallback to default for unknown values (Backport from 3.0)
- Tested against early version of PHP 7.4
notEquals()comparison method has been added.
- Tested with PHP 7.3 (has been working with earlier versions as well)
- Minor fix: triggering the proper
E_USER_WARNINGerror on unknown method call.
- Documentation improved: jump to top when changing page
- Broader PHPUnit support, testing with php 7.2 as well on travis
2017-10-13 (Friday 🎃)
- Magic checker properties and methods have been added
- Proper documentation has been created (extracted from readme + extended)
defaultValue()static method has been added
reset()method has been added
- Rewritten from scratch
- API has changed completely, with clarity as primary scope
- Minimum PHP version is 7.0
- Strict mode removed
equals()does type check
- For more details refer to UPGRADE-2.0.md
Development of v2 has been started.
- Display texts can be fetched dynamically via callback method
- Support for display texts has been added
__toString()casting now takes display text instead of const values. However the result is the very same in case no display text is being used, since it falls back to the const value if no display text is specified.
- Changelog started (added all backwards versions beginning from 1.0.0
- Static method bugfix
- Readme updates
- Initial release based on konekt/comon v0.1.2, heavily refactored version