From 3766db022305040a097dbc643f08b5250ca08bf4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 21 Jun 2024 19:29:12 +0200 Subject: [PATCH] Fixes --- src/Logger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Logger.php b/src/Logger.php index 24853b7..5545913 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -60,7 +60,7 @@ class Logger extends AbstractLogger private static string $dateTimeFormat = 'Y-m-d H:i:s'; public int $minLevelIndex; - private array $formatter; + private \Closure $formatter; private WritableStream $stdout; /** @@ -68,7 +68,7 @@ class Logger extends AbstractLogger */ private static array $closePromises = []; - protected function __construct(string $minLevel = LogLevel::WARNING, callable $formatter = null) + protected function __construct(string $minLevel = LogLevel::WARNING, \Closure $formatter = null) { if (null === $minLevel) { if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {