Skip to content

Commit 0fd4784

Browse files
committed
Fix spread operator usage
1 parent d3e8a0d commit 0fd4784

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Telegram/Bot.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ public function isValidToken(bool $thoroughCheck): bool
8383
* Replies directly to the webhook update with a payload in the body.
8484
*
8585
* @param string $method The API method.
86-
* @param array|object|null $arguments The arguments for the method.
86+
* @param array|object $arguments The arguments for the method.
8787
*
8888
* @return void
8989
*/
90-
protected function replyAsPayload(string $method, array|object|null $arguments = null): void
90+
protected function replyAsPayload(string $method, array|object $arguments = []): void
9191
{
9292
$payload = json_encode(['method' => $method, ...$arguments], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR);
9393

0 commit comments

Comments
 (0)