diff --git a/src/ConfigFactory.php b/src/ConfigFactory.php index 21b7a39..affcaf0 100644 --- a/src/ConfigFactory.php +++ b/src/ConfigFactory.php @@ -57,6 +57,10 @@ public static function createFromFile($_) try { $file = array_pop($files); + if (! is_string($file)) { + continue; + } + if (! is_readable($file)) { continue; }