Skip to content

Commit e34ecd1

Browse files
committed
Fixed initialized variables
1 parent f766354 commit e34ecd1

44 files changed

Lines changed: 232 additions & 232 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Arguments/AddStickerToSet.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class AddStickerToSet implements \JsonSerializable
1111
private int $userId;
1212
private string $name;
1313
/** @var InputFile|string|null */
14-
private $pngSticker;
15-
private ?InputFile $tgsSticker;
14+
private $pngSticker = null;
15+
private ?InputFile $tgsSticker = null;
1616
private string $emojis;
17-
private ?MaskPosition $maskPosition;
17+
private ?MaskPosition $maskPosition = null;
1818

1919
public function jsonSerialize(): array
2020
{

src/Arguments/AnswerCallbackQuery.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
class AnswerCallbackQuery implements \JsonSerializable
88
{
99
private string $callbackQueryId;
10-
private ?string $text;
11-
private ?bool $showAlert;
12-
private ?string $url;
13-
private ?int $cacheTime;
10+
private ?string $text = null;
11+
private ?bool $showAlert = null;
12+
private ?string $url = null;
13+
private ?int $cacheTime = null;
1414

1515
public function jsonSerialize(): array
1616
{

src/Arguments/AnswerInline.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ class AnswerInline implements \JsonSerializable
1010
private string $inlineQueryId;
1111
/** @var InlineQueryResult[] */
1212
private array $results;
13-
private ?int $cacheTime;
14-
private ?bool $isPersonal;
15-
private ?string $nextOffset;
16-
private ?string $switchPmText;
17-
private ?string $switchPmParameter;
13+
private ?int $cacheTime = null;
14+
private ?bool $isPersonal = null;
15+
private ?string $nextOffset = null;
16+
private ?string $switchPmText = null;
17+
private ?string $switchPmParameter = null;
1818

1919
public function jsonSerialize(): array
2020
{

src/Arguments/AnswerPreCheckoutQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class AnswerPreCheckoutQuery implements \JsonSerializable
88
{
99
private string $preCheckoutQueryId;
1010
private bool $ok;
11-
private ?string $errorMessage;
11+
private ?string $errorMessage = null;
1212

1313
public function jsonSerialize(): array
1414
{

src/Arguments/AnswerShippingQuery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class AnswerShippingQuery implements \JsonSerializable
1010
private string $shippingQueryId;
1111
private bool $ok;
1212
/** @var ?ShippingOption[] */
13-
private ?array $shippingOptions;
14-
private ?string $errorMessage;
13+
private ?array $shippingOptions = null;
14+
private ?string $errorMessage = null;
1515

1616
public function jsonSerialize(): array
1717
{

src/Arguments/BanChatMember.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class BanChatMember implements \JsonSerializable
99
/** @var int|string */
1010
private $chatId;
1111
private int $userId;
12-
private ?int $untilDate;
13-
private ?bool $revokeMessages;
12+
private ?int $untilDate = null;
13+
private ?bool $revokeMessages = null;
1414

1515
public function jsonSerialize(): array
1616
{

src/Arguments/CopyMessage.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class CopyMessage implements \JsonSerializable
1616
/** @var int|string */
1717
private $fromChatId;
1818
private int $messageId;
19-
private ?string $caption;
20-
private ?string $parseMode;
19+
private ?string $caption = null;
20+
private ?string $parseMode = null;
2121
/** @var ?MessageEntity[] */
22-
private ?array $captionEntities;
23-
private ?bool $disableNotification;
24-
private ?int $replyToMessageId;
25-
private ?bool $allowSendingWithoutReply;
22+
private ?array $captionEntities = null;
23+
private ?bool $disableNotification = null;
24+
private ?int $replyToMessageId = null;
25+
private ?bool $allowSendingWithoutReply = null;
2626
/** @var InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null */
27-
private $replyMarkup;
27+
private $replyMarkup = null;
2828

2929
public function jsonSerialize(): array
3030
{

src/Arguments/CreateChatInviteLink.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class CreateChatInviteLink implements \JsonSerializable
88
{
99
/** @var int|string */
1010
private $chatId;
11-
private ?int $expireDate;
12-
private ?int $memberLimit;
11+
private ?int $expireDate = null;
12+
private ?int $memberLimit = null;
1313

1414
public function jsonSerialize(): array
1515
{

src/Arguments/CreateNewStickerSet.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ class CreateNewStickerSet implements \JsonSerializable
1212
private string $name;
1313
private string $title;
1414
/** @var InputFile|string|null */
15-
private $pngSticker;
16-
private ?InputFile $tgsSticker;
15+
private $pngSticker = null;
16+
private ?InputFile $tgsSticker = null;
1717
private string $emojis;
18-
private ?bool $containsMasks;
19-
private ?MaskPosition $maskPosition;
18+
private ?bool $containsMasks = null;
19+
private ?MaskPosition $maskPosition = null;
2020

2121
public function jsonSerialize(): array
2222
{

src/Arguments/DeleteMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class DeleteMessage implements \JsonSerializable
66
{
7-
/** @var int|string|null */
7+
/** @var int|string */
88
private $chatId;
99
private int $messageId;
1010

0 commit comments

Comments
 (0)