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 e121aaa

Browse filesBrowse files
committed
Minor tweak
1 parent db11af0 commit e121aaa
Copy full SHA for e121aaa

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-3
lines changed

‎templates.rst

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