1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +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:
Valentin Udaltsov
2020-07-27 12:50:54 +03:00
committed by GitHub
parent f9eee5cec9
commit c282728812

View File

@@ -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);