Skip to content

Commit 801b780

Browse files
authored
Update WithCachedConfig.php (#57708)
1 parent cafe1ac commit 801b780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Foundation/Testing/WithCachedConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ protected function setUpWithCachedConfig(): void
2626
*/
2727
protected function tearDownWithCachedConfig(): void
2828
{
29-
LoadConfiguration::setAlwaysUseConfig(null);
29+
LoadConfiguration::alwaysUse(null);
3030
}
3131

3232
/**
3333
* Inform the container that the configuration is cached.
3434
*/
3535
protected function markConfigCached(Application $app): void
3636
{
37-
$app->instance('config_loaded_from_cache', true); // I'm not sure this is actually needed
37+
$app->instance('config_loaded_from_cache', true);
3838

3939
LoadConfiguration::alwaysUse(static fn () => CachedState::$cachedConfig);
4040
}

0 commit comments

Comments
 (0)