Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList::fixChoice
Fixes the data type of the given choice to avoid comparison problems.
Extension point. In this implementation, choices are guaranteed to always maintain their type and thus can be typesafely compared.
Signature
protected function fixChoice(mixed
$choice )
Parameters
$choice
— mixed- The choice.
Returns
- mixed
- The fixed choice.