From 14891585b0b001a834fdd0fb6bccb48ee0adda67 Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Sun, 21 Jun 2020 16:52:04 +0000 Subject: [PATCH] bug fix in Config::readDir --- src/Config/Config.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Config/Config.php b/src/Config/Config.php index a7c50b9..982d073 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -9,7 +9,7 @@ class Config extends SelfReferencingFlatArray implements ConfigInterface { public $strict = false; - public function readDir($dir, string $name = null, bool $overwrite = null) + public function readDir($dir, string $name = null, bool $overwrite = false) { $dir = realpath($dir); if (!$dir || !is_dir($dir)) { @@ -17,11 +17,7 @@ class Config extends SelfReferencingFlatArray implements ConfigInterface } foreach (glob("$dir/*") as $f) { if (is_file($f)) { - try { - $this->readFile($f, $name, $overwrite); - } catch (\Throwable $th) { - //ignore exceptions - } + $this->readFile($f, $name, $overwrite); } } }