From 482db787c48d9747ae59a938e24b3be36c39f39e Mon Sep 17 00:00:00 2001 From: William JEHANNE Date: Wed, 16 Oct 2019 09:31:57 +0200 Subject: [PATCH] [TwigBridge] Add show-deprecations option to the lint:twig command --- templates.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates.rst b/templates.rst index 00827845b49..631b201bd14 100644 --- a/templates.rst +++ b/templates.rst @@ -573,6 +573,9 @@ 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 show deprecations as errors + $ php bin/console lint:twig --show-deprecations templates/email/ + .. versionadded:: 4.4 The feature that checks all the application templates when not passing any