mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 05:14:39 +01:00
fixes
This commit is contained in:
parent
f16aa7c63a
commit
5e7babfa76
@ -157,8 +157,8 @@ class Lua
|
|||||||
array_walk_recursive($data, function (&$value, $key) {
|
array_walk_recursive($data, function (&$value, $key) {
|
||||||
if (is_object($value)) {
|
if (is_object($value)) {
|
||||||
$newval = [];
|
$newval = [];
|
||||||
foreach (get_class_methods($value) as $key => $name) {
|
if (method_exists($value, 'click')) {
|
||||||
$newval[$key] = [$value, $name];
|
$newval['click'] = [$value, 'click'];
|
||||||
}
|
}
|
||||||
foreach ($value as $key => $name) {
|
foreach ($value as $key => $name) {
|
||||||
$newval[$key] = $name;
|
$newval[$key] = $name;
|
||||||
|
@ -42,6 +42,14 @@ class Button extends \Volatile implements \JsonSerializable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function __debugInfo() {
|
||||||
|
return [
|
||||||
|
'data' => $this->data,
|
||||||
|
'info' => ['peer' => $this->info['peer'], 'id' => $this->info['id']]
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
return (array) $this->data;
|
return (array) $this->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user