From c509384b2229a48de862daa8f6865663b99bd997 Mon Sep 17 00:00:00 2001 From: BoShurik Date: Thu, 10 Jul 2025 15:24:44 +0300 Subject: [PATCH] Explicit nullable in BotApi::call --- src/BotApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BotApi.php b/src/BotApi.php index 0fb6e323..1ac21e00 100644 --- a/src/BotApi.php +++ b/src/BotApi.php @@ -244,7 +244,7 @@ public function setModeObject($mode = true) * @throws HttpException * @throws InvalidJsonException */ - public function call($method, array $data = null, $timeout = null) + public function call($method, ?array $data = null, $timeout = null) { if ($timeout !== null) { @trigger_error(sprintf('Passing $timeout parameter in %s::%s is deprecated. Use http client options', __CLASS__, __METHOD__), \E_USER_DEPRECATED);