Skip to content

Commit 9220138

Browse files
committed
refactor: TelegramLoggerHandler issue
1 parent f03f76d commit 9220138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Logger/TelegramLoggerHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ public function __construct(array $config)
2424

2525
protected function write($record): void
2626
{
27-
$this->type = $this->type ?? config('telegram-logger.default_logger_type', 'error');
27+
$type = $this->type ?? config('telegram-logger.default_logger_type', 'error');
2828

2929
telegramLog()
3030
->setToken($this->token)
3131
->setChatId($this->chatId)
32-
->$this->type($record['formatted']);
32+
->$type($record['formatted']);
3333
}
3434
}

0 commit comments

Comments
 (0)