File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ class TwigInitializer
4343 *
4444 * @param FilesystemLoader $loader Загрузчик.
4545 * @param string $debug Среда.
46- * @param string $cachePath Путь к кэшу (серверный).
46+ * @param string|null $cachePath Путь к кэшу (серверный).
4747 * @param array|null $twigOptions Опции Твига.
4848 */
4949 public function __construct (
5050 FilesystemLoader $ loader ,
5151 string $ debug ,
52- string $ cachePath ,
52+ ? string $ cachePath ,
5353 ?array $ twigOptions = null
5454 ) {
5555 $ this ->loader = $ loader ;
@@ -113,14 +113,14 @@ public function addPath(string $path) : void
113113 *
114114 * @param FilesystemLoader $loader Загрузчик.
115115 * @param string $debug Среда.
116- * @param string $cachePath Путь к кэшу (серверный).
116+ * @param string|null $cachePath Путь к кэшу (серверный).
117117 *
118118 * @return Environment
119119 */
120120 private function initTwig (
121121 FilesystemLoader $ loader ,
122122 string $ debug ,
123- string $ cachePath
123+ ? string $ cachePath
124124 ) : Environment {
125125
126126 return new Environment (
You can’t perform that action at this time.
0 commit comments