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);