File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,8 @@ the directory defined in the :ref:`default_path option <config-twig-default-path
382
382
383
383
Read more about :ref: `template directories and namespaces <templates-namespaces >`.
384
384
385
+ .. _config-twig-strict-variables :
386
+
385
387
strict_variables
386
388
~~~~~~~~~~~~~~~~
387
389
Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ in the following order:
164
164
#. ``$foo->getBar() `` (object and *getter * method);
165
165
#. ``$foo->isBar() `` (object and *isser * method);
166
166
#. ``$foo->hasBar() `` (object and *hasser * method);
167
- #. If none of the above exists, use ``null `` or throw a ``Twig\Error\RuntimeError `` exception if ``strict_variables `` config is enabled.
167
+ #. If none of the above exists, use ``null `` (or throw a ``Twig\Error\RuntimeError ``
168
+ exception if the :ref: `strict_variables <config-twig-strict-variables >`
169
+ option is enabled).
168
170
169
171
This allows to evolve your application code without having to change the
170
172
template code (you can start with array variables for the application proof of
You can’t perform that action at this time.
0 commit comments