diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-01-06 08:59:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 08:59:07 +0100 |
commit | 25077ba546433b7a410e637e35f146ee9abcf4bd (patch) | |
tree | 66a10eb2628a0b0a71ec303d35b279e60b183a02 | |
parent | 264df536403929ef5ecf036552e5277d8b0c3e19 (diff) | |
parent | 4e956249ea2b296b5fbeb0022ae5015ffdca4d32 (diff) | |
download | nextcloud-server-25077ba546433b7a410e637e35f146ee9abcf4bd.tar.gz nextcloud-server-25077ba546433b7a410e637e35f146ee9abcf4bd.zip |
Merge pull request #35835 from nextcloud/backport/35814/stable25
[stable25] Fix parameter type for EntityCollection::setReadMarker in comments app
-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; |