Skip to content

Commit

Permalink
support for php 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioGattolla committed Nov 26, 2024
1 parent d87fe58 commit 8c515d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DTO/InlineQueryResultArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Telegraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8c515d7

Please sign in to comment.