From 1ca0a6c84b4c7d1ca00906cdd373630580e75d66 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 24 Dec 2020 20:16:19 +0100 Subject: [PATCH] Avoid problems with old sessions --- src/danog/MadelineProto/TL/Types/Button.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/TL/Types/Button.php b/src/danog/MadelineProto/TL/Types/Button.php index ba8fcf631..3f6dfe04d 100644 --- a/src/danog/MadelineProto/TL/Types/Button.php +++ b/src/danog/MadelineProto/TL/Types/Button.php @@ -33,11 +33,11 @@ class Button implements \JsonSerializable, \ArrayAccess * * @psalm-var non-empty-array */ - private array $button; + private array $button = []; /** * Session name. */ - private string $session; + private string $session = ''; /** * MTProto instance. *