From: Cameron Ball Date: Fri, 28 Dec 2018 15:33:10 +0000 (+0800) Subject: Fix incorrect return type X-Git-Url: http://git.cameron1729.xyz/?p=SonOfLokstallBot.git;a=commitdiff_plain;h=01b8d6ea43d5f480dadd5a10abd0fdca698acfd1 Fix incorrect return type --- diff --git a/src/common.php b/src/common.php index 1a29ef3..272b868 100644 --- a/src/common.php +++ b/src/common.php @@ -32,7 +32,7 @@ function getMessageSenderId(TelegramUpdate $update) : int { return $update->get('message')->get('from')->get('id'); } -function getMessageSenderDisplayName(TelegramUpdate $update) : int { +function getMessageSenderDisplayName(TelegramUpdate $update) : string { return $update->get('message')->get('from')->get('first_name'); }