From 1d11ef3b2a360dfa32043f1fd72b28d676e3378f Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 4 Oct 2024 00:20:30 -0400 Subject: [PATCH] Updated SentWebAppMessage --- .../Objects/Inline/SentWebAppMessage.php | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/TgBotLib/Objects/Inline/SentWebAppMessage.php b/src/TgBotLib/Objects/Inline/SentWebAppMessage.php index 05b56f5..ea980b7 100644 --- a/src/TgBotLib/Objects/Inline/SentWebAppMessage.php +++ b/src/TgBotLib/Objects/Inline/SentWebAppMessage.php @@ -9,10 +9,7 @@ class SentWebAppMessage implements ObjectTypeInterface { - /** - * @var string|null - */ - private $inline_message_id; + private ?string $inline_message_id; /** * @return string|null @@ -23,11 +20,9 @@ } /** - * Returns an array representation of the object - * - * @return null[]|string[] + * @inheritDoc */ - public function toArray(): array + public function toArray(): ?array { return [ 'inline_message_id' => $this->inline_message_id, @@ -35,10 +30,7 @@ } /** - * Constructs object from an array representation - * - * @param array|null $data - * @return SentWebAppMessage|null + * @inheritDoc */ public static function fromArray(?array $data): ?SentWebAppMessage {