diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-03 23:26:06 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | e96d7c9b1e89161560c33ad4591be39a75dc4811 (patch) | |
tree | 3944e7b4185586f56cd4d0ca0b8f5f79ac19c369 /lib/Db | |
parent | 6a6f89ff945cb7922dafcf7a04e67bb10483fb2d (diff) |
🎨 Item.php: make shared_by nullable
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
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; |