Closed
Description
Symfony version(s) affected
7.2 (91588b3)
Description
getVarName
only appears on 7.1, and replaced with constant in 7.2:
The 7.2 TranslationDefaultDomainNodeVisitor
references getVarName
, which does not exist in version 7.2:
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.
How to reproduce
- Clone https://github.com/database-playground/app-sf/tree/def0e92908d3eaadf41802142742a4d8b5e3f2b0
- Run
composer update
- It throws
Attempted to call an undefined method named "getVarName" of class "Symfony\Bridge\Twig \NodeVisitor\TranslationDefaultDomainNodeVisitor".
Possible Solution
Change getVarName
to INTERNAL_VAR_NAME
.
Additional Context
No response