Skip to content

Commit db11af0

Browse files
committed
minor #12492 [TwigBridge] Add show-deprecations option to the lint:twig command (williamjehanne)
This PR was merged into the 4.4 branch. Discussion ---------- [TwigBridge] Add show-deprecations option to the lint:twig command <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Hi, Fixes #12476 (created by @fabpot), I add `--show-deprecations` options in templates documentation. Commits ------- 482db78 [TwigBridge] Add show-deprecations option to the lint:twig command
2 parents 14050dd + 482db78 commit db11af0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ errors. It's useful to run it before deploying your application to production
573573
$ php bin/console lint:twig templates/email/
574574
$ php bin/console lint:twig templates/article/recent_list.html.twig
575575
576+
# you can show deprecations as errors
577+
$ php bin/console lint:twig --show-deprecations templates/email/
578+
576579
.. versionadded:: 4.4
577580

578581
The feature that checks all the application templates when not passing any

0 commit comments

Comments
 (0)