mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Update TelegramBotHandler.php
Parameters `$level` and `$bubble` are already passed to parent constructor, no need to set them again. Also setting `$level` without `setLevel()` makes it incomparable as it is not converted to int via `Logger::toMonologLevel()`.
This commit is contained in:
committed by
GitHub
parent
f9eee5cec9
commit
c282728812
@@ -93,8 +93,6 @@ class TelegramBotHandler extends AbstractProcessingHandler
|
||||
|
||||
$this->apiKey = $apiKey;
|
||||
$this->channel = $channel;
|
||||
$this->level = $level;
|
||||
$this->bubble = $bubble;
|
||||
$this->setParseMode($parseMode);
|
||||
$this->disableWebPagePreview($disableWebPagePreview);
|
||||
$this->disableNotification($disableNotification);
|
||||
|
Reference in New Issue
Block a user