We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 808ebef commit 8b33dcdCopy full SHA for 8b33dcd
src/Illuminate/View/Engines/CompilerEngine.php
@@ -27,12 +27,12 @@ class CompilerEngine extends PhpEngine
27
* Create a new compiler engine instance.
28
*
29
* @param \Illuminate\View\Compilers\CompilerInterface $compiler
30
- * @param \Illuminate\Filesystem\Filesystem $files
+ * @param \Illuminate\Filesystem\Filesystem|null $files
31
* @return void
32
*/
33
- public function __construct(CompilerInterface $compiler, Filesystem $files)
+ public function __construct(CompilerInterface $compiler, Filesystem $files = null)
34
{
35
- parent::__construct($files);
+ parent::__construct($files ?: new Filesystem);
36
37
$this->compiler = $compiler;
38
}
0 commit comments