File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 11<?php
22
3-
43namespace Longman \TelegramBot \Entities \ChatMember ;
54
6-
75use Longman \TelegramBot \Entities \Entity ;
86use Longman \TelegramBot \Exception \TelegramException ;
97
108class Factory extends \Longman \TelegramBot \Entities \Factory
119{
12- public function make (array $ data , string $ bot_username ): Entity
10+ public static function make (array $ data , string $ bot_username ): Entity
1311 {
1412 $ type = [
1513 'creator ' => ChatMemberOwner::class,
Original file line number Diff line number Diff line change 11<?php
22
3-
43namespace Longman \TelegramBot \Entities ;
54
6-
75abstract class Factory
86{
9- abstract public function make (array $ data , string $ bot_username ): Entity ;
7+ abstract public static function make (array $ data , string $ bot_username ): Entity ;
108
119 public static function resolveEntityClass (string $ class , array $ property , string $ bot_username = '' ): Entity
1210 {
1311 if (is_subclass_of ($ class , Factory::class)) {
14- return $ class-> make ($ property , $ bot_username );
12+ return $ class:: make ($ property , $ bot_username );
1513 }
1614
1715 return new $ class ($ property , $ bot_username );
You can’t perform that action at this time.
0 commit comments