File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Illuminate/Support/Facades Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 44
55use Illuminate \Filesystem \Filesystem ;
66
7+ use function Illuminate \Support \enum_value ;
8+
79/**
810 * @method static \Illuminate\Contracts\Filesystem\Filesystem drive(string|null $name = null)
911 * @method static \Illuminate\Contracts\Filesystem\Filesystem disk(\UnitEnum|string|null $name = null)
@@ -96,7 +98,7 @@ class Storage extends Facade
9698 */
9799 public static function fake ($ disk = null , array $ config = [])
98100 {
99- $ root = self ::getRootPath ($ disk = $ disk ?: static ::$ app ['config ' ]->get ('filesystems.default ' ));
101+ $ root = self ::getRootPath ($ disk = enum_value ( $ disk) ?: static ::$ app ['config ' ]->get ('filesystems.default ' ));
100102
101103 if ($ token = ParallelTesting::token ()) {
102104 $ root = "{$ root }_test_ {$ token }" ;
You can’t perform that action at this time.
0 commit comments