From 14c1aaaa44742491b53151bb10fd96aef812c4fb Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 2 Dec 2024 13:51:01 -0500 Subject: [PATCH] Refactor fromArray method for null data handling --- src/TgBotLib/Objects/ExternalReplyInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TgBotLib/Objects/ExternalReplyInfo.php b/src/TgBotLib/Objects/ExternalReplyInfo.php index 4add106..b6de911 100644 --- a/src/TgBotLib/Objects/ExternalReplyInfo.php +++ b/src/TgBotLib/Objects/ExternalReplyInfo.php @@ -317,7 +317,7 @@ class ExternalReplyInfo implements ObjectTypeInterface * @inheritDoc * @noinspection DuplicatedCode */ - public static function fromArray(array $data): ObjectTypeInterface + public static function fromArray(?array $data): ?ExternalReplyInfo { $object = new self();