From: Cameron Ball Date: Sun, 2 Dec 2018 14:22:58 +0000 (+0800) Subject: Add return type to getTelegram - really need to do this everywhere X-Git-Url: http://git.cameron1729.xyz/?p=SonOfLokstallBot.git;a=commitdiff_plain;h=4692a9c1063ae4c2ad8ab1c4a717cdf00027a13b Add return type to getTelegram - really need to do this everywhere --- diff --git a/common.php b/common.php index e5424ae..e560659 100644 --- a/common.php +++ b/common.php @@ -5,7 +5,7 @@ require_once(__DIR__ . '/config.php'); use Telegram\Bot\Api; -function getTelegram() { +function getTelegram(): \Telegram\Bot\Api { STATIC $tg; return $tg = $tg ?? new \Telegram\Bot\Api(BOT_TOKEN); }