This commit is contained in:
Daniil Gentili 2024-06-21 19:29:12 +02:00
parent c15162c9b9
commit 3766db0223

View File

@ -60,7 +60,7 @@ class Logger extends AbstractLogger
private static string $dateTimeFormat = 'Y-m-d H:i:s'; private static string $dateTimeFormat = 'Y-m-d H:i:s';
public int $minLevelIndex; public int $minLevelIndex;
private array $formatter; private \Closure $formatter;
private WritableStream $stdout; private WritableStream $stdout;
/** /**
@ -68,7 +68,7 @@ class Logger extends AbstractLogger
*/ */
private static array $closePromises = []; 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 (null === $minLevel) {
if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) { if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {