Skip to content

Commit 283c9cc

Browse files
committed
fix type
1 parent f36a853 commit 283c9cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Api/Type/Keyboard/ReplyKeyboardMarkup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class ReplyKeyboardMarkup implements ReplayMarkup
2727
/**
2828
* Array of button rows, each represented by an Array of KeyboardButton objects.
2929
*
30-
* @var KeyboardButton[]
30+
* @var KeyboardButton[][]
3131
*/
3232
public $keyboard = [];
3333

@@ -63,11 +63,11 @@ final class ReplyKeyboardMarkup implements ReplayMarkup
6363

6464
public static function withButtons(KeyboardButton ...$buttons): self
6565
{
66-
return new self($buttons);
66+
return new self([$buttons]);
6767
}
6868

6969
/**
70-
* @param KeyboardButton[] $keyboard
70+
* @param KeyboardButton[][] $keyboard
7171
* @param bool $resizeKeyboard
7272
* @param bool $oneTimeKeyboard
7373
* @param bool $selective

0 commit comments

Comments
 (0)