From a01f3991168fefbaec3471a598a5014707a682ce Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 21 Sep 2017 08:35:00 +0000 Subject: [PATCH] Lua fixes --- src/danog/MadelineProto/Lua.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/Lua.php b/src/danog/MadelineProto/Lua.php index 5c95da05a..35c1c17ee 100644 --- a/src/danog/MadelineProto/Lua.php +++ b/src/danog/MadelineProto/Lua.php @@ -159,7 +159,7 @@ class Lua public static function convert_objects(&$data) { array_walk_recursive($data, function (&$value, $key) { - if (is_object($value)) { + if (is_object($value) && !( $value instanceof \phpseclib\Math\BigInteger)) { $newval = []; foreach (get_class_methods($value) as $name) { $newval[$name] = [$value, $name];