summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-03 23:26:06 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commite96d7c9b1e89161560c33ad4591be39a75dc4811 (patch)
tree3944e7b4185586f56cd4d0ca0b8f5f79ac19c369 /lib
parent6a6f89ff945cb7922dafcf7a04e67bb10483fb2d (diff)
🎨 Item.php: make shared_by nullable
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/Item.php6
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;