Skip to content

Commit bad5cf9

Browse files
authored
Update Config.php
1 parent 122f97d commit bad5cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function merge(callable ... $providers): array
2929
{
3030
$providers[] = static function()
3131
{
32-
return ['debug' => !self::$devMode, ConfigAggregator::ENABLE_CACHE => !self::$devMode,];
32+
return ['debug' => self::$devMode, ConfigAggregator::ENABLE_CACHE => !self::$devMode && self::$cacheFile != null,];
3333
};
3434

3535
return (new ConfigAggregator($providers, self::$cacheFile))->getMergedConfig();

0 commit comments

Comments
 (0)