Skip to content

Commit ef93cf4

Browse files
committed
Merge branch '4.4'
* 4.4: [TwigBridge] Add show-deprecations option to the lint:twig command
2 parents e031d36 + e121aaa commit ef93cf4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ the :class:`Twig\\Environment` class::
423423

424424
// src/Service/SomeService.php
425425
namespace App\Service;
426-
426+
427427
use Twig\Environment;
428428

429429
class SomeService
@@ -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 also show the deprecated features used in your templates
577+
$ php bin/console lint:twig --show-deprecations templates/email/
578+
576579
Inspecting Twig Information
577580
~~~~~~~~~~~~~~~~~~~~~~~~~~~
578581

0 commit comments

Comments
 (0)