Skip to content

Commit 49bb074

Browse files
authored
Update Config.php
1 parent aa4e097 commit 49bb074

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Config.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ public function __construct()
2525
*/
2626
public static function merge(callable ... $providers): array
2727
{
28-
$providers[] = static function()
29-
{
30-
return ['debug' => self::$devMode, ConfigAggregator::ENABLE_CACHE => !self::$devMode && self::$cacheFile != null,];
31-
};
32-
33-
return (new ConfigAggregator($providers, self::$cacheFile))->getMergedConfig();
28+
return (new ConfigAggregator(static fn() => ['debug' => self::$devMode, ConfigAggregator::ENABLE_CACHE => !self::$devMode && self::$cacheFile != null], self::$cacheFile))->getMergedConfig();
3429
}
3530
}

0 commit comments

Comments
 (0)