Closed (fixed)
Project:
Twig Tweak
Version:
4.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2026 at 10:31 UTC
Updated:
27 Jul 2026 at 09:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
m@ster commentedtwig_tweak 4.0.0-alpha2's debug commands use #[AsCommand] attribute, causing Drupal to autowire them. But Twig\Environment is registered as the twig service (not by class), and SignatureFormatter isn't registered at all.
Comment #4
kala4ekFaced the same. That patch helped me.
Comment #6
anybodyThanks, I created a MR from #4 - please review.
Can confirm the issue with Drupal 11.4
Comment #7
anybodyAny ideas why the tests didn't fail without this fix? I had the issue right after enabling twig_tweak 3.0.0-alpha2
Comment #8
grevil commentedBecause gitlab-ci is still using 11.3, but we can activate next minor testing.
Comment #9
grevil commentedHm it is actually activated, but for some reason it was skipped...
Comment #10
anybody@grevil indeed currently it seems these have to be triggered manually (at the build step).
Let's merge this and tag a new 4.0.0-alpha3 release.
Comment #11
anybody(Once pipeline is green)
Comment #12
grevil commentedAllowing minor phpunit failure for now, as the test strings are way too specific.
Comment #13
grevil commentedThanks everyone! Merged!