diff options
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/Item.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; |