diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-19 11:44:27 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-12-20 10:30:56 +0000 |
commit | 4e956249ea2b296b5fbeb0022ae5015ffdca4d32 (patch) | |
tree | 347fd06ca082fe32493004ab308b599f056b50ad | |
parent | 3fe385f9c6ceda29fdafc956d35741e89c6c5eab (diff) | |
download | nextcloud-server-4e956249ea2b296b5fbeb0022ae5015ffdca4d32.tar.gz nextcloud-server-4e956249ea2b296b5fbeb0022ae5015ffdca4d32.zip |
Fix parameter type for EntityCollection::setReadMarker in comments app
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/dav/lib/Comments/EntityCollection.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/dav/lib/Comments/EntityCollection.php b/apps/dav/lib/Comments/EntityCollection.php index 164c690afd0..2581ff0c367 100644 --- a/apps/dav/lib/Comments/EntityCollection.php +++ b/apps/dav/lib/Comments/EntityCollection.php @@ -162,12 +162,9 @@ class EntityCollection extends RootCollection implements IProperties { /** * Sets the read marker to the specified date for the logged in user - * - * @param \DateTime $value - * @return bool */ - public function setReadMarker($value) { - $dateTime = new \DateTime($value); + public function setReadMarker(?string $value): bool { + $dateTime = new \DateTime($value ?? 'now'); $user = $this->userSession->getUser(); $this->commentsManager->setReadMark($this->name, $this->id, $dateTime, $user); return true; |