From 8c515d7431e3f761a24391b45ecd86c4bdbeda41 Mon Sep 17 00:00:00 2001 From: mario Date: Tue, 26 Nov 2024 16:38:34 +0100 Subject: [PATCH] support for php 8.4 --- src/DTO/InlineQueryResultArticle.php | 2 +- src/Telegraph.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DTO/InlineQueryResultArticle.php b/src/DTO/InlineQueryResultArticle.php index 8fe65902..535b7d82 100644 --- a/src/DTO/InlineQueryResultArticle.php +++ b/src/DTO/InlineQueryResultArticle.php @@ -20,7 +20,7 @@ class InlineQueryResultArticle extends InlineQueryResult protected bool|null $hideUrl = null; protected string|null $parseMode = null; - public static function make(string $id, string $title, string $message = null): InlineQueryResultArticle + public static function make(string $id, string $title, ?string $message = null): InlineQueryResultArticle { $result = new InlineQueryResultArticle(); $result->id = $id; diff --git a/src/Telegraph.php b/src/Telegraph.php index c959d9be..a4078e82 100755 --- a/src/Telegraph.php +++ b/src/Telegraph.php @@ -134,7 +134,7 @@ public function send(): TelegraphResponse return TelegraphResponse::fromResponse($response); } - public function dispatch(string $queue = null): PendingDispatch + public function dispatch(?string $queue = null): PendingDispatch { return $this->dispatchRequestToTelegram($queue); }