From e7da05e61760a56d4f01cf10f6dc811150339c44 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 14 Oct 2016 12:29:03 +0200 Subject: [PATCH] Throw exception when trying to serialize unknown types --- src/danog/MadelineProto/TL/TL.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index ee3c2a79..7e4979df 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -140,7 +140,9 @@ class TL return $concat; break; + default: + throw new Exception("Couldn't serialize param with type ".$type_); break; } }