Skip to content

Twig 2.x deprecated tokenizing via a string source #94

@DiegoPino

Description

@DiegoPino

What is this?

🚀 @giancarlobi found a deprecated (changed) signature method in our Twig template validation when running a 2.x Twig on Drupal 9.0.4. here https://github.com/esmero/format_strawberryfield/blob/master/src/Plugin/Validation/Constraint/TwigTemplateConstraintValidator.php#L47

Fix is to convert the source into the proper Object before ::tokenizing
Its documented here https://twig.symfony.com/doc/2.x/deprecated.html as deprecated but of course Drupal 9 was not "telling" us that..

Fix coming!

Metadata

Metadata

Assignees

Labels

Drupal 9Everyone's favorite version until Drupal 10 comesTwigTwig template processingbugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions