From c6f0f8d3362926e69943c523f935791d8a9d4e3d Mon Sep 17 00:00:00 2001 From: Alejandro Glejberman Date: Sun, 29 Jan 2017 11:28:27 -0300 Subject: [PATCH] Avoid showing warning message when configuration file incomplete --- src/MageApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MageApplication.php b/src/MageApplication.php index 57a8e69..1a45e29 100644 --- a/src/MageApplication.php +++ b/src/MageApplication.php @@ -71,7 +71,7 @@ class MageApplication extends Application } if (array_key_exists('magephp', $config)) { - $config = $config['magephp']; + $config = is_null($config['magephp']) ? [] : $config['magephp']; $logger = null; if (array_key_exists('log_dir', $config) && file_exists($config['log_dir']) && is_dir($config['log_dir'])) {