Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db11af0

Browse filesBrowse 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
Copy full SHA for db11af0

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎templates.rst

Copy file name to clipboardExpand all lines: templates.rst
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.