You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When i'm trying to use the new form helpers https://symfony.com/blog/new-in-symfony-5-2-form-field-helpers (btw why does this show an unsupported message?) I get a type exception: Return value of Symfony\Bridge\Twig\Extension\FormExtension::createFieldTranslation() must be of the type string, null returned
Hi!
Symfony version(s) affected: 5.2.1
Description
When i'm trying to use the new form helpers https://symfony.com/blog/new-in-symfony-5-2-form-field-helpers (btw why does this show an unsupported message?) I get a type exception:
Return value of Symfony\Bridge\Twig\Extension\FormExtension::createFieldTranslation() must be of the type string, null returned
How to reproduce
Possible Solution
maybe allow return null in referenced function ant the ones that calling it.
https://github.com/symfony/symfony/blob/5.x/src/Symfony/Bridge/Twig/Extension/FormExtension.php#L167
since it can return null, if the first if statement is true.
cheers
The text was updated successfully, but these errors were encountered: