Skip to content

"Symfony\Component\Translation\TranslatableMessage::__toString() is deprecated" in templates #7369

@MrJuliuss

Description

@MrJuliuss

Hello,

When displaying field helper, it generate a symfony deprecated on TranslatableMessage.
It seems that twig method is not empty triggers __toString method.

            ChoiceField::new('field_name', 'my.name')
                ->setHelp('my.helper')
Fix User Deprecated: Since symfony/translation 7.4: Method "Symfony\Component\Translation\TranslatableMessage::__toString()" is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/translation 7.4: Method \"Symfony\\Component\\Translation\\TranslatableMessage::__toString()\" is deprecated. at /var/www/vendor/symfony/translation/TranslatableMessage.php:35)"} []

PR : #7347

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions