]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Api/Mastodon/Conversation.php
Correct format/style errors
[friendica.git] / src / Object / Api / Mastodon / Conversation.php
index 0b0136044f2302145b91e94999b3d98fefc3d3f9..453783235cb06ae541e4dd81f1e8cbb9609c4728 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -42,11 +42,11 @@ 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          = $id;
+               $this->id          = (string)$id;
                $this->accounts    = $accounts;
                $this->unread      = $unread;
                $this->last_status = $last_status;