Skip to content

Commit 58f1434

Browse files
committed
Cleanup after Refactoring
1 parent 97cd061 commit 58f1434

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

src/FluentEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __call($name, $arguments)
3333
#[\ReturnTypeWillChange]
3434
public function jsonSerialize()
3535
{
36-
return $this->data;
36+
return (object) $this->data;
3737
}
3838

3939
private function getDefault($key)

src/InlineKeyboard/InlineKeyboardButton.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace PhpTelegramBot\FluentKeyboard\InlineKeyboard;
44

55
use PhpTelegramBot\FluentKeyboard\Button;
6-
use PhpTelegramBot\FluentKeyboard\FluentEntity;
76

87
/**
98
* @method self text(string $text)

src/ReplyKeyboard/KeyboardButtonPollType.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44

55
use PhpTelegramBot\FluentKeyboard\Button;
66

7+
/**
8+
* @method $this type(string $type)
9+
*/
710
class KeyboardButtonPollType extends Button
811
{
912

1013
protected $data = [];
1114

12-
public function __construct(array $data = [])
13-
{
14-
$this->data = $data;
15-
}
16-
1715
public static function any()
1816
{
1917
return new static();
@@ -33,10 +31,4 @@ public static function regular()
3331
]);
3432
}
3533

36-
#[\ReturnTypeWillChange]
37-
public function jsonSerialize()
38-
{
39-
return $this->data;
40-
}
41-
4234
}

0 commit comments

Comments
 (0)