Fix twig 3.15 deprecations

Created on 19 November 2024, 4 months ago

Problem/Motivation

Follow-up to 📌 Upgrade twig/twig to 3.15.0 Active

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

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🌱 Plan
Status

Active

Version

11.0 🔥

Component

theme system

Created by

🇫🇷France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024