Skip to content

Commit e103e5b

Browse files
authored
Update Config.php
1 parent 9fcf35d commit e103e5b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Config.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ final class Config
1515
*/
1616
public static function merge(callable ...$providers): array
1717
{
18-
return (new ConfigAggregator(array_merge($providers, [static fn(): array => ['debug' => self::$devMode, ConfigAggregator::ENABLE_CACHE => !self::$devMode && self::$cacheFile != null]])))->getMergedConfig();
18+
return (new ConfigAggregator(
19+
array_merge($providers,
20+
[
21+
static fn(): array => [
22+
'debug' => self::$devMode,
23+
ConfigAggregator::ENABLE_CACHE => !self::$devMode && self::$cacheFile != null
24+
]
25+
]
26+
), Config::$cacheFile
27+
))->getMergedConfig();
1928
}
2029
}

0 commit comments

Comments
 (0)