Skip to content

Commit f63fe6f

Browse files
committed
Make data array in constructor optional
1 parent f47ed35 commit f63fe6f

7 files changed

+7
-7
lines changed

src/Entities/BotCommandScope/BotCommandScopeAllChatAdministrators.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class BotCommandScopeAllChatAdministrators extends Entity implements BotCommandScope
1515
{
16-
public function __construct(array $data)
16+
public function __construct(array $data = [])
1717
{
1818
$data['type'] = 'all_chat_administrators';
1919
parent::__construct($data);

src/Entities/BotCommandScope/BotCommandScopeAllGroupChats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class BotCommandScopeAllGroupChats extends Entity implements BotCommandScope
1515
{
16-
public function __construct($data)
16+
public function __construct(array $data = [])
1717
{
1818
$data['type'] = 'all_group_chats';
1919
parent::__construct($data);

src/Entities/BotCommandScope/BotCommandScopeAllPrivateChats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class BotCommandScopeAllPrivateChats extends Entity implements BotCommandScope
1515
{
16-
public function __construct(array $data)
16+
public function __construct(array $data = [])
1717
{
1818
$data['type'] = 'all_private_chats';
1919
parent::__construct($data);

src/Entities/BotCommandScope/BotCommandScopeChat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class BotCommandScopeChat extends Entity implements BotCommandScope
2626
{
27-
public function __construct(array $data)
27+
public function __construct(array $data = [])
2828
{
2929
$data['type'] = 'chat';
3030
parent::__construct($data);

src/Entities/BotCommandScope/BotCommandScopeChatAdministrators.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class BotCommandScopeChatAdministrators extends Entity implements BotCommandScope
2626
{
27-
public function __construct(array $data)
27+
public function __construct(array $data = [])
2828
{
2929
$data['type'] = 'chat_administrators';
3030
parent::__construct($data);

src/Entities/BotCommandScope/BotCommandScopeChatMember.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
class BotCommandScopeChatMember extends Entity implements BotCommandScope
2929
{
30-
public function __construct(array $data)
30+
public function __construct(array $data = [])
3131
{
3232
$data['type'] = 'chat_member';
3333
parent::__construct($data);

src/Entities/BotCommandScope/BotCommandScopeDefault.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class BotCommandScopeDefault extends Entity implements BotCommandScope
1616
{
17-
public function __construct(array $data)
17+
public function __construct(array $data = [])
1818
{
1919
$data['type'] = 'default';
2020
parent::__construct($data);

0 commit comments

Comments
 (0)