File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -35,24 +35,16 @@ class SmbAdapter implements FilesystemAdapter
3535 */
3636 private PathPrefixer $ prefixer ;
3737
38- /**
39- * The mime type detector instance.
40- *
41- * @var MimeTypeDetector
42- */
43- private MimeTypeDetector $ mimeTypeDetector ;
44-
4538 /**
4639 * Create an SMB adapter instance.
4740 *
4841 * @param IShare $share
4942 * @param string $root
50- * @param MimeTypeDetector|null $mimeTypeDetector
43+ * @param MimeTypeDetector $mimeTypeDetector
5144 */
52- function __construct (private IShare $ share , string $ root = '' , MimeTypeDetector $ mimeTypeDetector = null )
45+ function __construct (private IShare $ share , string $ root = '' , private MimeTypeDetector $ mimeTypeDetector = new FinfoMimeTypeDetector () )
5346 {
5447 $ this ->prefixer = new PathPrefixer ($ root );
55- $ this ->mimeTypeDetector = $ mimeTypeDetector ?: new FinfoMimeTypeDetector ();
5648 }
5749
5850 /**
You can’t perform that action at this time.
0 commit comments