From 35c9710d3f05acf23fc5d8818626eb91955a58ba Mon Sep 17 00:00:00 2001 From: netkas Date: Sat, 5 Oct 2024 00:18:09 -0400 Subject: [PATCH] Updated InlineKeyboardMarkup --- src/TgBotLib/Objects/InlineKeyboardMarkup.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/TgBotLib/Objects/InlineKeyboardMarkup.php b/src/TgBotLib/Objects/InlineKeyboardMarkup.php index c5f9c83..90aa97a 100644 --- a/src/TgBotLib/Objects/InlineKeyboardMarkup.php +++ b/src/TgBotLib/Objects/InlineKeyboardMarkup.php @@ -10,7 +10,7 @@ /** * @var InlineKeyboardButton[][] */ - private $inline_keyboard; + private array $inline_keyboard; /** * Array of button rows, each represented by an Array of InlineKeyboardButton objects @@ -48,9 +48,7 @@ } /** - * Returns an array representation of the object - * - * @return array[][] + * @inheritDoc */ public function toArray(): array { @@ -69,10 +67,7 @@ } /** - * Constructs the object from an array representation - * - * @param array|null $data - * @return InlineKeyboardMarkup|null + * @inheritDoc */ public static function fromArray(?array $data): ?InlineKeyboardMarkup {