From 4692a9c1063ae4c2ad8ab1c4a717cdf00027a13b Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sun, 2 Dec 2018 22:22:58 +0800 Subject: [PATCH] Add return type to getTelegram - really need to do this everywhere --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0