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 ed0237b commit 2de8280Copy full SHA for 2de8280
src/Illuminate/Support/Facades/Storage.php
@@ -3,6 +3,7 @@
3
namespace Illuminate\Support\Facades;
4
5
use Illuminate\Filesystem\Filesystem;
6
+use function Illuminate\Support\enum_value;
7
8
/**
9
* @method static \Illuminate\Contracts\Filesystem\Filesystem drive(string|null $name = null)
@@ -96,7 +97,7 @@ class Storage extends Facade
96
97
*/
98
public static function fake($disk = null, array $config = [])
99
{
- $root = self::getRootPath($disk = $disk ?: static::$app['config']->get('filesystems.default'));
100
+ $root = self::getRootPath($disk = enum_value($disk) ?: static::$app['config']->get('filesystems.default'));
101
102
if ($token = ParallelTesting::token()) {
103
$root = "{$root}_test_{$token}";
0 commit comments