Receiving Attempted to call an undefined method named "getVarName"
when upgrading to the latest 7.2.*
version
#58702
Labels
Symfony version(s) affected
7.2 (91588b3)
Description
getVarName
only appears on 7.1, and replaced with constant in 7.2:symfony/src/Symfony/Bridge/Twig/NodeVisitor/TranslationDefaultDomainNodeVisitor.php
Lines 122 to 125 in 6161368
The 7.2
TranslationDefaultDomainNodeVisitor
referencesgetVarName
, which does not exist in version 7.2:symfony/src/Symfony/Bridge/Twig/NodeVisitor/TranslationDefaultDomainNodeVisitor.php
Line 58 in 91588b3
This issue appears to stem from a mistakenly ahead porting by @nicolas-grekas. I'm unsure if it is safe to reference
INTERNAL_VAR_NAME
in this context.symfony/src/Symfony/Bridge/Twig/NodeVisitor/TranslationDefaultDomainNodeVisitor.php
Line 36 in 91588b3
How to reproduce
composer update
Attempted to call an undefined method named "getVarName" of class "Symfony\Bridge\Twig \NodeVisitor\TranslationDefaultDomainNodeVisitor".
Possible Solution
Change
getVarName
toINTERNAL_VAR_NAME
.Additional Context
No response
The text was updated successfully, but these errors were encountered: