Releases: yokai-php/enum-bundle
Releases · yokai-php/enum-bundle
v5.1.0
What's Changed
- Test on latest stable PHP 8.4 + Symfony 7.3 by @yann-eugone in #64
Full Changelog: v5.0.1...v5.1.0
v5.0.1
What's Changed
- Change EnumExtension base class that is now final by @yann-eugone in #63
Full Changelog: v5.0.0...v5.0.1
v5.0.0
What's Changed
- Allow Symfony 7.x and bump dependencies by @yann-eugone in #59
- Replace squizlabs/php_codesniffer with symplify/easy-coding-standard by @yann-eugone in #60
- Add PHPStan and fix all errors by @yann-eugone in #61
- Remove PHP/Symfony versions matrix hacks by @yann-eugone in #62
Full Changelog: v4.1.0...v5.0.0
v4.1.0
What's Changed
- Add support for PHP 8.1 native enums by @yann-eugone in #56
- Fixed github tests badge by @yann-eugone in #58
- Convert enum objects into scalar values during form submission by @yann-eugone in #57
Full Changelog: v4.0.3...v4.1.0
v4.0.3
What's Changed
- Initialize enum array in EnumRegistry to avoid TypeError when empty by @yann-eugone in #54
Full Changelog: v4.0.2...v4.0.3
v4.0.2
What's Changed
- Fix Choice annotation/attribute constructor args changing with Symfony versions by @yann-eugone & @ggabrovski in #53
Full Changelog: v4.0.1...v4.0.2
v4.0.1
What's Changed
- Allow Symfony 6.0 & Updated tests according to changes by @yann-eugone in #51
Full Changelog: v4.0.0...v4.0.1
v4.0.0
Changelog (v3.3.0...v4.0.0)
- changed
EnumInterface::getChoicesmethod return logic (flipped values and labels) - added
EnumInterface::getValuesmethod : must return all possible values for enum - added
EnumInterface::getLabelmethod : must return a label for an enum value - removed
AbstractTranslatedEnumclass : useTranslatedEnuminstead - removed
ConfigurableTranslatedEnumclass : useTranslatedEnuminstead - added
Enumclass : extends this base class for easy implementation - removed
CannotExtractConstantsExceptionclass : useLogicExceptioninstead - removed
InvalidTranslatePatternExceptionclass : useLogicExceptioninstead - removed
InvalidEnumExceptionclass : useInvalidArgumentExceptioninstead - removed
DuplicatedEnumExceptionclass : useLogicExceptioninstead - removed
InvalidEnumValueExceptionclass : useInvalidArgumentExceptioninstead - removed
enum_labeltwig function : useenum_labeltwig filter instead - added
enum_valuestwig function : fetch possible enum values - changed enum base classes constructor arguments order
- added integration with
myclabs/php-enum: see doc - added documentation about upgrading from standard symfony : see doc
Please read upgrade note : UPGRADE-4.x.md
v3.3.0
Changelog (v3.2.0...v3.3.0)
- added
EnumInterface::getLabelmethod (#37 by @yann-eugone)
v3.2.0
Changelog (v3.1.0...v3.2.0)
- added support for PHP 8.0 (#38 by @yann-eugone)