diff --git a/templating/debug.rst b/templating/debug.rst index 6e3e531db52..28742e83845 100644 --- a/templating/debug.rst +++ b/templating/debug.rst @@ -46,8 +46,7 @@ The same mechanism can be used in Twig templates thanks to ``dump()`` function: {% endfor %} -By design, the ``dump()`` function is only available if the ``kernel.debug`` -setting (in ``config.yml``) is ``true``, to avoid leaking sensitive information -in production. In fact, trying to use the ``dump()`` function when ``kernel.debug`` -is ``false`` (for example in the ``prod`` environment) will result in an -application error. +By design, the ``dump()`` function is only available in the ``dev`` and ``test`` +environments, to avoid leaking sensitive information in production. In fact, +trying to use the ``dump()`` function in the ``prod`` environment will result in +a PHP error.