Problem/Motivation
The new version 3.28 introduced a new deprecation, which makes PHPUnit fail.
Steps to reproduce
Example: https://git.drupalcode.org/project/swiffy_slider/-/jobs/11224054
Proposed resolution
Update twig and fix deprecation in main, and when not backported to d11, then only update the .deprecation-ignore.txt.
For .deprecation-ignore.txt:
# Twig 3.28.
%Since twig/twig 3\.28: The "Drupal\\Core\\Template\\TwigSandboxPolicy::checkSecurity\(\)" method will take a 4th "array \$tests" argument in 4\.0; not declaring it is deprecated\.%
%The "Drupal\\Core\\Template\\TwigSandboxPolicy::checkSecurity\(\)" method will require a new "string\[\] \$tests" argument in the next major version of its interface "Twig\\Sandbox\\SecurityPolicyInterface", not defining it is deprecated\.%
Remaining tasks
-
User interface changes
None.
Introduced terminology
None.
API changes
None.
Data model changes
None.
Release notes snippet
Update to <a href="https://symfony.com/blog/twig-3-28-0-released">Twig 3.28</a>.
Issue fork drupal-3614340
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3614340-update-to-twig-11.x
changes, plain diff MR !16535
- 3614340-update-to-twig-11.3.x
changes, plain diff MR !16536
- 3614340-update-to-twig-10.6.x
changes, plain diff MR !16537
- 3614340-update-to-twig-11.4.x
changes, plain diff MR !16538
- 3614340-update-to-twig
changes, plain diff MR !16508
Comments
Comment #2
tobiasbComment #4
tobiasbComment #5
tobiasbComment #6
tobiasbComment #7
smustgrave commentedLooks good to me!
Comment #9
catchCommitted/pushed to main, thanks!
We should backport this to 11.x/11.3.x/10.6.x too.
Comment #10
tobiasbComment #15
tobiasbDone. I created also a MR for 11.4.x.
Comment #16
smustgrave commentedNice backport to everything!
Comment #20
longwaveCommitted and pushed to their respective branches. Thanks!
Comment #22
tobiasbfyi: the update was not commited to 11.x.
Comment #23
catchRe-opening so it doesn't get forgotten. Not at computer to cherry pick myself.
Comment #25
longwaveOops, don't know how I missed that.
Committed and pushed 77cf7918631 to 11.x. Thanks!