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

Collect all deprecations with lint:twig command #20861

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,8 @@ errors. It's useful to run it before deploying your application to production
$ php bin/console lint:twig templates/email/
$ php bin/console lint:twig templates/article/recent_list.html.twig

# you can also show the deprecated features used in your templates
# you can also show the first deprecated feature used in your templates
# as it shows only the first one found, you may need to run it until no more deprecations are found
$ php bin/console lint:twig --show-deprecations templates/email/

When running the linter inside `GitHub Actions`_, the output is automatically
Expand Down