From 89e3f9c57568db524321f7b203025d926215c7dd Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 4 Oct 2024 21:16:13 -0400 Subject: [PATCH] Updated ForumTopicReopened --- src/TgBotLib/Objects/ForumTopicReopened.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/TgBotLib/Objects/ForumTopicReopened.php b/src/TgBotLib/Objects/ForumTopicReopened.php index 32a6120..da8edfd 100644 --- a/src/TgBotLib/Objects/ForumTopicReopened.php +++ b/src/TgBotLib/Objects/ForumTopicReopened.php @@ -20,13 +20,15 @@ } /** - * Constructs object from an array representation - * - * @param array $data - * @return ForumTopicReopened + * @inheritDoc */ - public static function fromArray(array $data): self + public static function fromArray(?array $data): ?ForumTopicReopened { + if($data === null) + { + return null; + } + return new self(); } } \ No newline at end of file