1
0
Fork 0

Make last status parameter actually optional in Object\Api\Mastodon\Conversation

This commit is contained in:
Hypolite Petovan 2021-07-13 23:02:11 -04:00
parent 2b5f1f8bca
commit be18a59bd7

View file

@ -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;