From c22ef6e2ff451e496453d32c9ddd314375075032 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 4 Oct 2024 21:17:18 -0400 Subject: [PATCH] Updated GeneralForumTopicUnhidden --- .../Objects/GeneralForumTopicUnhidden.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/TgBotLib/Objects/GeneralForumTopicUnhidden.php b/src/TgBotLib/Objects/GeneralForumTopicUnhidden.php index 77cb36d..fb9d72c 100644 --- a/src/TgBotLib/Objects/GeneralForumTopicUnhidden.php +++ b/src/TgBotLib/Objects/GeneralForumTopicUnhidden.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 @@ } /** - * Constructs object from an array representation - * - * @param array $data - * @return GeneralForumTopicUnhidden + * @inheritDoc */ - public static function fromArray(array $data): self + public static function fromArray(?array $data): ?GeneralForumTopicUnhidden { + if($data === null) + { + return null; + } + return new self(); } } \ No newline at end of file