Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294542

Fix twig 3.15 deprecations

$
0
0

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

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 294542


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>