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