From dd8dd17620ce805305e8f517094a1d01a13fefd3 Mon Sep 17 00:00:00 2001 From: jbidad <51882296+jbidad@users.noreply.github.com> Date: Mon, 15 Jan 2024 11:14:24 +0330 Subject: [PATCH] Update TelegramBotHandler.php to support 7.4 also as the lower php version cannot parse '|' to type strict, it's better to use '?' to show the variable is null --- src/TelegramBotHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TelegramBotHandler.php b/src/TelegramBotHandler.php index 24b07a7..3a97d47 100644 --- a/src/TelegramBotHandler.php +++ b/src/TelegramBotHandler.php @@ -57,7 +57,7 @@ class TelegramBotHandler extends AbstractProcessingHandler implements HandlerInt public function __construct( string $token, string $chat_id, - string|null $topic_id = null, + ?string $topic_id = null, $level = Logger::DEBUG, bool $bubble = true, $bot_api = 'https://api.telegram.org/bot',