Skip to content

Commit

Permalink
Merge pull request #5 from isaac-araujo/patch-1
Browse files Browse the repository at this point in the history
Fix: missing return statement in logWriter configuration closure
  • Loading branch information
mychidarko authored Oct 19, 2024
2 parents 7134400 + b9c0f44 commit fbf454d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit fbf454d

Please sign in to comment.