Skip to content

Commit 8b33dcd

Browse files
committed
make dependency optional
1 parent 808ebef commit 8b33dcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/View/Engines/CompilerEngine.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ class CompilerEngine extends PhpEngine
2727
* Create a new compiler engine instance.
2828
*
2929
* @param \Illuminate\View\Compilers\CompilerInterface $compiler
30-
* @param \Illuminate\Filesystem\Filesystem $files
30+
* @param \Illuminate\Filesystem\Filesystem|null $files
3131
* @return void
3232
*/
33-
public function __construct(CompilerInterface $compiler, Filesystem $files)
33+
public function __construct(CompilerInterface $compiler, Filesystem $files = null)
3434
{
35-
parent::__construct($files);
35+
parent::__construct($files ?: new Filesystem);
3636

3737
$this->compiler = $compiler;
3838
}

0 commit comments

Comments
 (0)