We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f36a853 commit 283c9ccCopy full SHA for 283c9cc
src/Api/Type/Keyboard/ReplyKeyboardMarkup.php
@@ -27,7 +27,7 @@ final class ReplyKeyboardMarkup implements ReplayMarkup
27
/**
28
* Array of button rows, each represented by an Array of KeyboardButton objects.
29
*
30
- * @var KeyboardButton[]
+ * @var KeyboardButton[][]
31
*/
32
public $keyboard = [];
33
@@ -63,11 +63,11 @@ final class ReplyKeyboardMarkup implements ReplayMarkup
63
64
public static function withButtons(KeyboardButton ...$buttons): self
65
{
66
- return new self($buttons);
+ return new self([$buttons]);
67
}
68
69
70
- * @param KeyboardButton[] $keyboard
+ * @param KeyboardButton[][] $keyboard
71
* @param bool $resizeKeyboard
72
* @param bool $oneTimeKeyboard
73
* @param bool $selective
0 commit comments