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,