From be18a59bd7c45e1e070259737b45f4047fe7ec65 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 13 Jul 2021 23:02:11 -0400 Subject: [PATCH] Make last status parameter actually optional in Object\Api\Mastodon\Conversation --- src/Object/Api/Mastodon/Conversation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Object/Api/Mastodon/Conversation.php b/src/Object/Api/Mastodon/Conversation.php index e0950e555e..145fac94e5 100644 --- a/src/Object/Api/Mastodon/Conversation.php +++ b/src/Object/Api/Mastodon/Conversation.php @@ -42,9 +42,9 @@ class Conversation extends BaseDataTransferObject /** * @var Status */ - protected $last_status = true; + protected $last_status = null; - public function __construct(string $id, array $accounts, bool $unread, \Friendica\Object\Api\Mastodon\Status $last_status) + public function __construct(string $id, array $accounts, bool $unread, Status $last_status = null) { $this->id = (string)$id; $this->accounts = $accounts; -- 2.39.5