From a04140dc8fae0594a58a49269c2b3690ddec3673 Mon Sep 17 00:00:00 2001 From: netkas Date: Sun, 6 Oct 2024 16:05:05 -0400 Subject: [PATCH] Updated VideoChatStarted.php --- src/TgBotLib/Objects/VideoChatStarted.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/TgBotLib/Objects/VideoChatStarted.php b/src/TgBotLib/Objects/VideoChatStarted.php index f70e235..c3b04ed 100644 --- a/src/TgBotLib/Objects/VideoChatStarted.php +++ b/src/TgBotLib/Objects/VideoChatStarted.php @@ -10,9 +10,7 @@ // Currently, holds no information. /** - * Returns an array representation of the object - * - * @return array + * @inheritDoc */ public function toArray(): array { @@ -20,13 +18,15 @@ } /** - * Constructs object from an array representation - * - * @param array $data - * @return VideoChatStarted + * @inheritDoc */ - public static function fromArray(array $data): self + public static function fromArray(?array $data): ?VideoChatStarted { + if($data === null) + { + return null; + } + return new self(); } } \ No newline at end of file