Skip to content

Commit dd8dd17

Browse files
authored
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
1 parent cf20eb6 commit dd8dd17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TelegramBotHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class TelegramBotHandler extends AbstractProcessingHandler implements HandlerInt
5757
public function __construct(
5858
string $token,
5959
string $chat_id,
60-
string|null $topic_id = null,
60+
?string $topic_id = null,
6161
$level = Logger::DEBUG,
6262
bool $bubble = true,
6363
$bot_api = 'https://api.telegram.org/bot',

0 commit comments

Comments
 (0)