-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update for Twig 2.7: Template
-> TemplateWrapper
#955
Conversation
Also, I've updated the composer dependencies, because it wouldn't install otherwise since the vulnerability disclosure in Twig 2.6. |
Thank's you! |
@@ -5045,16 +5169,16 @@ | |||
}, | |||
{ | |||
"name": "twig/twig", | |||
"version": "v2.6.2", | |||
"version": "v2.7.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Also waiting for CVE-NONE-0001 fix to be merged to master.
Thanks for fixing this bug Bob. |
Has this bug been reintroduced with later versions of Twig? I have 2.8.1 and got the inverse error:
Reverting the changes in |
Since Twig 2.7,
$twig->resolveTemplate($template)
doesn't returnTwig\Template
butTwig\TemplateWrapper
. This PR simply updates the typehints accordingly.