Fixed
Project:
Drupal core
Version:
10.6.x-dev
Component:
composer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2026 at 21:34 UTC
Updated:
10 Aug 2026 at 09:03 UTC
Jump to comment: Most recent
The new version 3.28 introduced a new deprecation, which makes PHPUnit fail.
Example: https://git.drupalcode.org/project/swiffy_slider/-/jobs/11224054
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\.%
-
None.
None.
None.
None.
Update to <a href="https://symfony.com/blog/twig-3-28-0-released">Twig 3.28</a>.
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:
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!