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 8a2bae3 commit 1aeb1a1Copy full SHA for 1aeb1a1
1 file changed
src/Facades/Index.php
@@ -28,12 +28,7 @@ class Index extends Facade
28
*/
29
public static function fake(array $existing = []): FakeIndexManager
30
{
31
- static::clearResolvedInstance(IndexManagerInterface::class);
32
-
33
- static::$app->instance(
34
- IndexManagerInterface::class,
35
- $fake = new FakeIndexManager($existing),
36
- );
+ static::swap($fake = new FakeIndexManager($existing));
37
38
return $fake;
39
}
0 commit comments