Major Refactoring

This commit is contained in:
Netkas 2023-02-14 17:35:16 -05:00
parent 3de87df2d9
commit 54a8a59ee8
83 changed files with 892 additions and 918 deletions

View file

@ -1,5 +1,7 @@
<?php
/** @noinspection PhpMissingFieldTypeInspection */
namespace TgBotLib\Objects;
use TgBotLib\Interfaces\ObjectTypeInterface;
@ -95,10 +97,10 @@
{
$object = new ChatPhoto();
$object->small_file_id = $data['small_file_id'];
$object->small_file_unique_id = $data['small_file_unique_id'];
$object->big_file_id = $data['big_file_id'];
$object->big_file_unique_id = $data['big_file_unique_id'];
$object->small_file_id = $data['small_file_id'] ?? null;
$object->small_file_unique_id = $data['small_file_unique_id'] ?? null;
$object->big_file_id = $data['big_file_id'] ?? null;
$object->big_file_unique_id = $data['big_file_unique_id'] ?? null;
return $object;
}