When we are using function e.g. array_flip on choices option for Symfony\Component\Form\Extension\Core\Type\ChoiceType, the text of choices should be translated (added to the translation files)
Actual behavior
Text of choices is not added to translation files
Steps to reproduce
Having e.g. ExampleType class as below will not translate choices, because of the condition in JMS\TranslationBundle\Translation\Extractor\File\FormExtractor in line 227 as $item->value is instance of PhpParser\Node\Expr\FuncCall (not possible to use 'choices_as_values' on the form builder, as it is deprecated since Symfony 3.0).
Expected behavior
When we are using function e.g. array_flip on choices option for Symfony\Component\Form\Extension\Core\Type\ChoiceType, the text of choices should be translated (added to the translation files)
Actual behavior
Text of choices is not added to translation files
Steps to reproduce
Having e.g. ExampleType class as below will not translate choices, because of the condition in JMS\TranslationBundle\Translation\Extractor\File\FormExtractor in line 227 as $item->value is instance of PhpParser\Node\Expr\FuncCall (not possible to use 'choices_as_values' on the form builder, as it is deprecated since Symfony 3.0).