From 4a6c877443da4a5a649691e6e4c8c8d20c6f7533 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 27 Mar 2016 00:39:25 +0100 Subject: [PATCH] Fix file creation instead of directory --- Log/FileLogger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Log/FileLogger.php b/Log/FileLogger.php index b9448128d..0389338c6 100644 --- a/Log/FileLogger.php +++ b/Log/FileLogger.php @@ -101,7 +101,7 @@ class FileLogger implements LoggerInterface throw new PathException($lpath); } - if (is_dir($lpath)) { + if (is_dir($lpath) || strpos($lpath, '.') === false) { if (!file_exists($lpath)) { mkdir($lpath, 0644, true); }