Skip to content

Commit ab5ac1e

Browse files
committed
Reworded the note about dump() availability per environment
1 parent f884555 commit ab5ac1e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

templating/debug.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ The same mechanism can be used in Twig templates thanks to ``dump()`` function:
4646
</a>
4747
{% endfor %}
4848

49-
By design, the ``dump()`` function is only available if the ``kernel.debug``
50-
setting (in ``config.yml``) is ``true``, to avoid leaking sensitive information
51-
in production. In fact, trying to use the ``dump()`` function when ``kernel.debug``
52-
is ``false`` (for example in the ``prod`` environment) will result in an
53-
application error.
49+
By design, the ``dump()`` function is only available in the ``dev`` and ``test``
50+
environments, to avoid leaking sensitive information in production. In fact,
51+
trying to use the ``dump()`` function in the ``prod`` environment will result in
52+
a PHP error.

0 commit comments

Comments
 (0)