diff --git a/composer.json b/composer.json index 2485fc1..941c8fb 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ } }, "require": { - "monolog/monolog": "^1.0|^2.0", + "monolog/monolog": "^1.0|^2.0|^3.0", "ext-curl": "*" } } diff --git a/src/TelegramBotHandler.php b/src/TelegramBotHandler.php index d32dcaf..ae5655b 100644 --- a/src/TelegramBotHandler.php +++ b/src/TelegramBotHandler.php @@ -55,7 +55,7 @@ public function __construct(string $token, string $chat_id, $level = Logger::DEB /** * @inheritDoc */ - protected function write(array $record): void + protected function write($record): void { $this->send($record['formatted']); } diff --git a/src/TelegramFormatter.php b/src/TelegramFormatter.php index b5af2bb..0e4c2cd 100644 --- a/src/TelegramFormatter.php +++ b/src/TelegramFormatter.php @@ -62,7 +62,7 @@ public function __construct($html = true, $format = null, $dateFormat = null, $s /** * {@inheritdoc} */ - public function format(array $record) + public function format($record) { $message = ''; if (isset($record['context']) && isset($record['context']['exception'])) {