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