From f6df3bf9da20efd490320e3e8915127b62fbdeef Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 4 Oct 2024 12:10:25 -0400 Subject: [PATCH] Updated CallbackGame --- src/TgBotLib/Objects/CallbackGame.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/TgBotLib/Objects/CallbackGame.php b/src/TgBotLib/Objects/CallbackGame.php index 7c4356e..3975eb3 100644 --- a/src/TgBotLib/Objects/CallbackGame.php +++ b/src/TgBotLib/Objects/CallbackGame.php @@ -9,9 +9,7 @@ // Note: A placeholder, currently holds no information. Use BotFather to set up your game. /** - * Returns an array representation of the object. - * - * @return array + * @inheritDoc */ public function toArray(): array { @@ -19,12 +17,9 @@ } /** - * Constructs an object from an array representation. - * - * @param array $data - * @return CallbackGame + * @inheritDoc */ - public static function fromArray(array $data): self + public static function fromArray(?array $data): ?CallbackGame { return new self(); }