Skip to content

Commit e121aaa

Browse files
committed
Minor tweak
1 parent db11af0 commit e121aaa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

templates.rst

+4-3
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,13 +573,14 @@ 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
576+
# you can also show the deprecated features used in your templates
577577
$ php bin/console lint:twig --show-deprecations templates/email/
578578
579579
.. versionadded:: 4.4
580580

581581
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.
583584

584585
Inspecting Twig Information
585586
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)