Problem/Motivation
Follow-up to #3488365: Upgrade twig/twig to 3.15.0
Steps to reproduce
https://github.com/twigphp/Twig/blob/v3.15.0/CHANGELOG
* Deprecate instantiating `Node` directly. Use `EmptyNode` or `Nodes` instead.
* Deprecate `TempNameExpression` in favor of `LocalVariable`
* Deprecate `NameExpression` in favor of `ContextVariable`
* Deprecate `AssignNameExpression` in favor of `AssignContextVariable`
* Deprecate `MethodCallExpression` in favor of `MacroReferenceExpression`
* Deprecate passing a string or an array to Twig callable arguments accepting arrow functions (pass a `\Closure`)
* Deprecate the `sandbox` tag
Proposed resolution
File separate child issues for discovered deprecations
Remaining tasks
Clean-up all usages of deprecated code and file CR with suggested workarounds for contrib