From e96d7c9b1e89161560c33ad4591be39a75dc4811 Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Wed, 3 Mar 2021 23:26:06 +0100 Subject: =?UTF-8?q?=F0=9F=8E=A8=20Item.php:=20make=20shared=5Fby=20nullabl?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- lib/Db/Item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Db/Item.php b/lib/Db/Item.php index eb3d320f3..86508ea72 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -68,7 +68,7 @@ class Item extends Entity implements IAPI, \JsonSerializable /** @var string|null */ protected $categoriesJson; /** @var string */ - protected $sharedBy = ''; + protected $sharedBy; public function __construct() @@ -297,7 +297,7 @@ class Item extends Entity implements IAPI, \JsonSerializable return $this->unread; } - public function getSharedBy(): string + public function getSharedBy(): ?string { return $this->sharedBy; } @@ -528,7 +528,7 @@ class Item extends Entity implements IAPI, \JsonSerializable return $this; } - public function setSharedBy(string $sharedBy): self + public function setSharedBy(string $sharedBy = null): self { if ($this->sharedBy !== $sharedBy) { $this->sharedBy = $sharedBy; -- cgit v1.2.3