Skip to content

Commit 0b8c2ae

Browse files
committed
minor #10102 Fixed the type of the twig.cache config option (javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- Fixed the type of the twig.cache config option Fixes #10101. Commits ------- 0a2c44f Fixed the type of the twig.cache config option
2 parents e88ffea + 0a2c44f commit 0b8c2ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/configuration/twig.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ application harder to maintain.
121121
cache
122122
~~~~~
123123

124-
**type**: ``string`` **default**: ``'%kernel.cache_dir%/twig'``
124+
**type**: ``string`` | ``false`` | ``Twig\Cache\CacheInterface`` **default**: ``'%kernel.cache_dir%/twig'``
125125

126126
Before using the Twig templates to render some contents, they are compiled into
127127
regular PHP code. Compilation is a costly process, so the result is cached in
128128
the directory defined by this configuration option.
129129

130-
Set this option to ``null`` to disable Twig template compilation. However, this
130+
Set this option to ``false`` to disable Twig template compilation. However, this
131131
is not recommended; not even in the ``dev`` environment, because the
132132
``auto_reload`` option ensures that cached templates which have changed get
133133
compiled again.

0 commit comments

Comments
 (0)