From 7a7e2fb511c22474535465060ff1bf1b78dbceb8 Mon Sep 17 00:00:00 2001 From: Setiawan Hu Date: Thu, 10 Dec 2020 21:00:06 +0700 Subject: [PATCH] Fixing TelegramObject constructor issue * Fix issue when empty argument passed may causing no argument passed error * Removing Logger method invocation when instantiating the object --- src/TelegramObject.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/TelegramObject.php b/src/TelegramObject.php index f5d9738..2cb0f4c 100644 --- a/src/TelegramObject.php +++ b/src/TelegramObject.php @@ -26,10 +26,8 @@ class TelegramObject implements Arrayable * * @param array|updates $fields request / response payloads */ - public function __construct($fields) + public function __construct($fields = []) { - Logger::log($fields); - $this->fields = $fields; }