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

Fix compatibility with twig 3.9 and yielding #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jderusse
Copy link

This PR makes CSPNode compatible with twig 3.9.

Since twigphp/Twig#3999 we cannot use ob_ method to get the generated output (See twigphp/Twig#4034)

This PR fixes the issue by using the CaptureNode introduced in twigphp/Twig#3954

Fix #343

src/Twig/Node/CSPNode.php Outdated Show resolved Hide resolved
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.

Incompatibility with twig 3.9
2 participants