Skip to content

Commit

Permalink
Fix: missing return statement in logWriter configuration closure
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-araujo authored Oct 11, 2024
1 parent 7134400 commit b9c0f44
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 b9c0f44

Please sign in to comment.