mirror of
https://github.com/danog/laravel-madeline-proto.git
synced 2024-11-30 04:29:05 +01:00
Fixing TelegramObject constructor issue
* Fix issue when empty argument passed may causing no argument passed error * Removing Logger method invocation when instantiating the object
This commit is contained in:
parent
d5bbea7b0f
commit
7a7e2fb511
@ -26,10 +26,8 @@ class TelegramObject implements Arrayable
|
|||||||
*
|
*
|
||||||
* @param array|updates $fields request / response payloads
|
* @param array|updates $fields request / response payloads
|
||||||
*/
|
*/
|
||||||
public function __construct($fields)
|
public function __construct($fields = [])
|
||||||
{
|
{
|
||||||
Logger::log($fields);
|
|
||||||
|
|
||||||
$this->fields = $fields;
|
$this->fields = $fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user