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 2b97072 commit 7d23d5bCopy full SHA for 7d23d5b
src/Initializer.php
@@ -85,7 +85,9 @@ public function initConfiguration(
85
$this->printer->printLine('<gray>Using config</gray> ' . $configPath);
86
87
try {
88
- $config = require $configPath;
+ $config = (static function () use ($configPath) {
89
+ return require $configPath;
90
+ })();
91
} catch (Throwable $e) {
92
throw new InvalidConfigException(get_class($e) . " in {$e->getFile()}:{$e->getLine()}\n > " . $e->getMessage(), 0, $e);
93
}
0 commit comments