Skip to content

Commit 9ac7b95

Browse files
authored
refactor(log): fix parameter types (#1771)
1 parent 95dcb32 commit 9ac7b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/log/src/GenericLogger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
final class GenericLogger implements Logger
1414
{
15-
/** @var array<int, Monolog> */
15+
/** @var array<string, Monolog> */
1616
private array $drivers = [];
1717

1818
public function __construct(
@@ -82,7 +82,7 @@ public function log(mixed $level, Stringable|string $message, array $context = [
8282
$this->eventBus->dispatch(new MessageLogged(LogLevel::fromMonolog($level), $message, $context));
8383
}
8484

85-
private function writeLog(MonologLogLevel $level, string $message, array $context): void
85+
private function writeLog(MonologLogLevel $level, Stringable|string $message, array $context): void
8686
{
8787
foreach ($this->logConfig->channels as $channel) {
8888
$this->resolveDriver($channel, $level)->log($level, $message, $context);

0 commit comments

Comments
 (0)