Tags: yokai-php/enum-bundle
Tags
Convert enum objects into scalar values during form submission (#57) * Convert enum objects into scalar values during form submission * Only trigger deprecation about "enum_choice_value" option when values are objects * Add doc about "enum_choice_value" option * Add doc for PHP native enum support --------- Co-authored-by: Yann Eugoné <[email protected]>
Allow Enum constraint to be used as PHP 8.0 Attribute (#50) * Allow Enum constraint to be used as PHP 8.0 Attribute * Review testing matrix for wider versions range : PHP 7.1 & Symfony 5.3 * Separate testing model for annotations & attributes testing * Replace annotations with attributes in doc
Introduce EnumInterface::getLabel (#39) * Introduce EnumInterface::getLabel to not rely on getChoices from the outside * Store translated enum choices in a private property to avoid calling translation more than once per enum * Normalize assert method usage to static calls * Fixed doc use statements * #37 $choices assignment refacto + comment getLabel in EnumInterface for next major (#40) Co-authored-by: Mathieu Ducrot <[email protected]>
PreviousNext