Releases: yokai-php/enum-bundle
Releases · yokai-php/enum-bundle
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::getChoices
method return logic (flipped values and labels) - added
EnumInterface::getValues
method : must return all possible values for enum - added
EnumInterface::getLabel
method : must return a label for an enum value - removed
AbstractTranslatedEnum
class : useTranslatedEnum
instead - removed
ConfigurableTranslatedEnum
class : useTranslatedEnum
instead - added
Enum
class : extends this base class for easy implementation - removed
CannotExtractConstantsException
class : useLogicException
instead - removed
InvalidTranslatePatternException
class : useLogicException
instead - removed
InvalidEnumException
class : useInvalidArgumentException
instead - removed
DuplicatedEnumException
class : useLogicException
instead - removed
InvalidEnumValueException
class : useInvalidArgumentException
instead - removed
enum_label
twig function : useenum_label
twig filter instead - added
enum_values
twig 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::getLabel
method (#37 by @yann-eugone)
v3.2.0
Changelog (v3.1.0...v3.2.0
)
- added support for PHP 8.0 (#38 by @yann-eugone)
v3.1.0
Changelog (v3.0.0...v3.1.0
)
- added support for Symfony 5.1 Compound constraint in form type guess (#36 by @yann-eugone)