From b4a4c759040410130b310b79adb3e172977b23cd Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 16 Sep 2018 21:12:58 +0200 Subject: [PATCH] Allow running without a config file. --- src/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application.php b/src/Application.php index 8979bc5a..eb2acb74 100644 --- a/src/Application.php +++ b/src/Application.php @@ -78,7 +78,7 @@ final class Application self::$instance = $this; $this->startupTime = microtime(true); $this->debugMode = $debug; - $this->config = parse_ini_file($configFile, true, INI_SCANNER_TYPED); + $this->config = is_file($configFile) ? parse_ini_file($configFile, true, INI_SCANNER_TYPED) : []; if ($this->config === false) { throw new UnexpectedValueException('Failed to parse configuration.');