We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03f76d commit 9220138Copy full SHA for 9220138
src/Logger/TelegramLoggerHandler.php
@@ -24,11 +24,11 @@ public function __construct(array $config)
24
25
protected function write($record): void
26
{
27
- $this->type = $this->type ?? config('telegram-logger.default_logger_type', 'error');
+ $type = $this->type ?? config('telegram-logger.default_logger_type', 'error');
28
29
telegramLog()
30
->setToken($this->token)
31
->setChatId($this->chatId)
32
- ->$this->type($record['formatted']);
+ ->$type($record['formatted']);
33
}
34
0 commit comments