aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Env.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Env.php b/src/Env.php
index 38d9279..9e6ba51 100644
--- a/src/Env.php
+++ b/src/Env.php
@@ -39,7 +39,7 @@ class Env
return $this->lazy("twig", function () {
$loader = new FilesystemLoader($this->config["templates_path"]);
$env = new Environment($loader, [
- "cache" => $this->config["templates_cache"],
+ "cache" => $this->config["templates_cache"] ?? false,
]);
$env->addFunction(new TwigFunction("url", function (string $url, ...$args) {