Skip to content

Commit a8edf2e

Browse files
authored
Explicit nullable in BotApi::call (#506)
1 parent 8f83d0e commit a8edf2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BotApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function setModeObject($mode = true)
244244
* @throws HttpException
245245
* @throws InvalidJsonException
246246
*/
247-
public function call($method, array $data = null, $timeout = null)
247+
public function call($method, ?array $data = null, $timeout = null)
248248
{
249249
if ($timeout !== null) {
250250
@trigger_error(sprintf('Passing $timeout parameter in %s::%s is deprecated. Use http client options', __CLASS__, __METHOD__), \E_USER_DEPRECATED);

0 commit comments

Comments
 (0)