diff --git a/templates.rst b/templates.rst index 1431e0244a9..67fdf4a07ef 100644 --- a/templates.rst +++ b/templates.rst @@ -164,7 +164,7 @@ in the following order: #. ``$foo->getBar()`` (object and *getter* method); #. ``$foo->isBar()`` (object and *isser* method); #. ``$foo->hasBar()`` (object and *hasser* method); -#. If none of the above exists, use ``null``. +#. If none of the above exists, use ``null`` or throw a ``Twig\Error\RuntimeError`` exception if ``strict_variables`` config is enabled. This allows to evolve your application code without having to change the template code (you can start with array variables for the application proof of