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();