Skip to content

Commit 6948bdb

Browse files
committed
Ошибка обработки twig_cache_dir
1 parent 296f6ef commit 6948bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Services/Twig/TwigService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TwigService
3939
private $debug;
4040

4141
/**
42-
* @var string $cachePath
42+
* @var string|boolean $cachePath
4343
*/
4444
private $cachePath;
4545

@@ -62,7 +62,7 @@ public function __construct(
6262
$this->loader = $loader;
6363
$this->twigOptions = (array)$twigOptions;
6464
$this->debug = $debug;
65-
$this->cachePath = $cachePath;
65+
$this->cachePath = $cachePath ?: false;
6666

6767
$this->twigEnvironment = $this->initTwig(
6868
$this->loader,

0 commit comments

Comments
 (0)