From b30d70db98961af0d79e13ebcdcf39f458a5047f Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 7 Oct 2024 13:46:49 -0400 Subject: [PATCH] Initialize inline_keyboard array in the constructor --- src/TgBotLib/Objects/InlineKeyboardMarkup.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/TgBotLib/Objects/InlineKeyboardMarkup.php b/src/TgBotLib/Objects/InlineKeyboardMarkup.php index 90aa97a..b6c96af 100644 --- a/src/TgBotLib/Objects/InlineKeyboardMarkup.php +++ b/src/TgBotLib/Objects/InlineKeyboardMarkup.php @@ -12,6 +12,14 @@ */ private array $inline_keyboard; + /** + * InlineKeyboardMarkup constructor. + */ + public function __construct() + { + $this->inline_keyboard = []; + } + /** * Array of button rows, each represented by an Array of InlineKeyboardButton objects *