From b9c0f446b7d95120a266c9b87b08352690dd48f2 Mon Sep 17 00:00:00 2001 From: Isaac <84479744+isaac-araujo@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:08:16 -0300 Subject: [PATCH] Fix: missing return statement in logWriter configuration closure --- src/scripts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts.php b/src/scripts.php index b359e98..4f28d20 100644 --- a/src/scripts.php +++ b/src/scripts.php @@ -3,7 +3,7 @@ if (class_exists('Leaf\Config')) { \Leaf\Config::addScript(function () { \Leaf\Config::singleton('logWriter', function ($c) { - is_object($c['log.writer']) ? + return is_object($c['log.writer']) ? $c['log.writer'] : new \Leaf\LogWriter($c['log.dir'] . $c['log.file'], $c['log.open'] ?? true); });