fixes
This commit is contained in:
parent
f16aa7c63a
commit
5e7babfa76
@ -157,8 +157,8 @@ class Lua
|
||||
array_walk_recursive($data, function (&$value, $key) {
|
||||
if (is_object($value)) {
|
||||
$newval = [];
|
||||
foreach (get_class_methods($value) as $key => $name) {
|
||||
$newval[$key] = [$value, $name];
|
||||
if (method_exists($value, 'click')) {
|
||||
$newval['click'] = [$value, 'click'];
|
||||
}
|
||||
foreach ($value as $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()
|
||||
{
|
||||
return (array) $this->data;
|
||||
|
Loading…
Reference in New Issue
Block a user