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

Twig deprecations #949

Closed
prudloff-insite opened this issue Dec 23, 2024 · 1 comment
Closed

Twig deprecations #949

prudloff-insite opened this issue Dec 23, 2024 · 1 comment
Labels

Comments

@prudloff-insite
Copy link
Contributor

Describe the bug
satis build triggers these deprecations:

Deprecation Notice: Since twig/twig 3.12: Character "D" should not be escaped; the "\" character is ignored in Twig 3 but will not be in Twig 4. Please remove the extra "\" character at position 2 in "index.html.twig" at line 36. in /var/www/vendor/symfony/deprecation-contracts/function.php:25
Deprecation Notice: Since twig/twig 3.12: Character "D" should not be escaped; the "\" character is ignored in Twig 3 but will not be in Twig 4. Please remove the extra "\" character at position 2 in "index.html.twig" at line 37. in /var/www/vendor/symfony/deprecation-contracts/function.php:25
Deprecation Notice: Since twig/twig 3.12: Character "/" should not be escaped; the "\" character is ignored in Twig 3 but will not be in Twig 4. Please remove the extra "\" character at position 11 in "package.html.twig" at line 100. in /var/www/vendor/symfony/deprecation-contracts/function.php:25
Deprecation Notice: Since twig/twig 3.12: Character "/" should not be escaped; the "\" character is ignored in Twig 3 but will not be in Twig 4. Please remove the extra "\" character at position 13 in "package.html.twig" at line 100. in /var/www/vendor/symfony/deprecation-contracts/function.php:25

To Reproduce
Call satis build with Twig 3.16.0.

Expected behavior
No deprecation.

Additional context
I think it comes from these anti-slashes:

I suppose we need to do something like this:

{{ "now"|date(constant('\\DateTime::COOKIE')) }}
@alcohol
Copy link
Member

alcohol commented Dec 24, 2024

I think #947 resolved this?

@alcohol alcohol closed this as completed Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants