From f16e361bece2ebe62d12f71324d9d4f02cdaa6ee Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 24 Aug 2023 23:00:41 +0000 Subject: [PATCH] Fixed type error. --- VERSION | 2 +- src/SasaeEnvironment.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 3f60217..d666bd4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.1-dev +1.0.2-dev diff --git a/src/SasaeEnvironment.php b/src/SasaeEnvironment.php index 02ac85b..f08ced7 100644 --- a/src/SasaeEnvironment.php +++ b/src/SasaeEnvironment.php @@ -49,7 +49,7 @@ class SasaeEnvironment { if(empty($cache)) throw new InvalidArgumentException('If $cache is an array, it may not be empty.'); $cache = SasaeFilesystemCache::create(array_shift($cache), array_shift($cache)); - } + } elseif($cache === null) $cache = false; $this->env = new TwigEnvironment($loader, [ 'debug' => $debug,