Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Fix the html_element tag with Twig 3.9.0 #23

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

titouanmathis
Copy link
Contributor

The new yield mode for output generation introduced in Twig 3.9.0 breaks our custom html_element tag.

This PR fixes this bug by using the new NodeCapture class if it exists to get the body of the tag.

Twig 3.9.0 introduced a new `yield` usage, breaking the `html_element`
tag node.

See twigphp/Twig#4039.
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.61%. Comparing base (9e73108) to head (b094d09).

❗ Current head b094d09 differs from pull request most recent head 17f3f84. Consider uploading reports for the commit 17f3f84 to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##             develop      #23      +/-   ##
=============================================
+ Coverage      95.83%   96.61%   +0.77%     
- Complexity        51       52       +1     
=============================================
  Files              7        7              
  Lines            144      177      +33     
=============================================
+ Hits             138      171      +33     
  Misses             6        6              
Flag Coverage Δ
unittests 96.61% <100.00%> (+0.77%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@titouanmathis titouanmathis merged commit e8da358 into develop Apr 18, 2024
10 checks passed
@titouanmathis titouanmathis deleted the bugfix/twig-3.9-html_element branch April 18, 2024 14:21
@titouanmathis titouanmathis mentioned this pull request Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant