File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ the :class:`Twig\\Environment` class::
423
423
424
424
// src/Service/SomeService.php
425
425
namespace App\Service;
426
-
426
+
427
427
use Twig\Environment;
428
428
429
429
class SomeService
@@ -573,13 +573,14 @@ errors. It's useful to run it before deploying your application to production
573
573
$ php bin/console lint:twig templates/email/
574
574
$ php bin/console lint:twig templates/article/recent_list.html.twig
575
575
576
- # you can show deprecations as errors
576
+ # you can also show the deprecated features used in your templates
577
577
$ php bin/console lint:twig --show-deprecations templates/email/
578
578
579
579
.. versionadded :: 4.4
580
580
581
581
The feature that checks all the application templates when not passing any
582
- arguments to ``lint:twig `` was introduced in Symfony 4.4.
582
+ arguments to ``lint:twig `` and the ``--show-deprecations `` option were
583
+ introduced in Symfony 4.4.
583
584
584
585
Inspecting Twig Information
585
586
~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments