Fixed type error.
This commit is contained in:
parent
acf25c28e0
commit
f16e361bec
|
@ -49,7 +49,7 @@ class SasaeEnvironment {
|
||||||
if(empty($cache))
|
if(empty($cache))
|
||||||
throw new InvalidArgumentException('If $cache is an array, it may not be empty.');
|
throw new InvalidArgumentException('If $cache is an array, it may not be empty.');
|
||||||
$cache = SasaeFilesystemCache::create(array_shift($cache), array_shift($cache));
|
$cache = SasaeFilesystemCache::create(array_shift($cache), array_shift($cache));
|
||||||
}
|
} elseif($cache === null) $cache = false;
|
||||||
|
|
||||||
$this->env = new TwigEnvironment($loader, [
|
$this->env = new TwigEnvironment($loader, [
|
||||||
'debug' => $debug,
|
'debug' => $debug,
|
||||||
|
|
Loading…
Reference in a new issue