File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 8
8
use unreal4u \Dummy \Logger ;
9
9
use unreal4u \TelegramAPI \Telegram \Types \Custom \ResultArray ;
10
10
11
+ #[\AllowDynamicProperties]
11
12
abstract class TelegramTypes
12
13
{
13
14
/**
@@ -62,21 +63,19 @@ final protected function populateObject(array $data = []): TelegramTypes
62
63
/**
63
64
* The default is that we have no subobjects at all, so this function will return nothing
64
65
*
65
- * @param string $key
66
- * @param array $data
67
- *
68
66
* @return TelegramTypes
69
67
*/
70
68
protected function mapSubObjects (string $ key , array $ data ): TelegramTypes
71
69
{
72
70
if (!isset ($ this ->$ key )) {
73
71
$ this ->logger ->error (sprintf (
74
- 'The key "%s" does not exist in the class! Maybe a recent Telegram Bot API update? In any way, please ' .
72
+ 'The key "%s" does not exist in the class %s ! Maybe a recent Telegram Bot API update? In any way, please ' .
75
73
'submit an issue (bug report) at %s with this complete log line ' ,
76
74
$ key ,
77
- 'https://github.com/unreal4u/telegram-api/issues '
75
+ static ::class,
76
+ 'https://github.com/unreal4u/telegram-api/issues ' ,
78
77
), [
79
- 'object ' => \get_class ( $ this ) ,
78
+ 'object ' => static ::class ,
80
79
'data ' => $ data ,
81
80
]);
82
81
}
You can’t perform that action at this time.
0 commit comments