From fe93f5c63fe27ee0959cb9d25ac49e0ed27d430e Mon Sep 17 00:00:00 2001 From: Camilo Sperberg Date: Thu, 23 Feb 2017 00:16:15 +0100 Subject: [PATCH] More general check but no notice anymore --- src/Abstracts/TelegramMethods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Abstracts/TelegramMethods.php b/src/Abstracts/TelegramMethods.php index 7669f5e..a7c0ca8 100644 --- a/src/Abstracts/TelegramMethods.php +++ b/src/Abstracts/TelegramMethods.php @@ -46,7 +46,7 @@ public static function bindToObject(TelegramRawData $data, LoggerInterface $logg */ public function performSpecialConditions(): TelegramMethods { - if ($this->reply_markup !== null) { + if (!empty($this->reply_markup)) { $this->reply_markup = json_encode($this->formatReplyMarkup($this->reply_markup)); }