summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2023-02-09 12:28:13 +0100
committerGitHub <noreply@github.com>2023-02-09 12:28:13 +0100
commit2dbf69409b761d02b886dcdb7c9b022643d8039f (patch)
tree11883f3ac811e5f56ce2b1189f9e20ad25438186
parenta57a4ffc17c2c16550f63f512e4c9111da524497 (diff)
parent7a2903ae20f6ec33edb55e5c2dbaa235cd15a29d (diff)
downloadnextcloud-server-2dbf69409b761d02b886dcdb7c9b022643d8039f.tar.gz
nextcloud-server-2dbf69409b761d02b886dcdb7c9b022643d8039f.zip
Merge pull request #35837 from nextcloud/backport/35814/stable24
[stable24] Fix parameter type for EntityCollection::setReadMarker in comments app
-rw-r--r--apps/dav/lib/Comments/EntityCollection.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/dav/lib/Comments/EntityCollection.php b/apps/dav/lib/Comments/EntityCollection.php
index d9b06e1240c..59eda21df36 100644
--- a/apps/dav/lib/Comments/EntityCollection.php
+++ b/apps/dav/lib/Comments/EntityCollection.php
@@ -163,12 +163,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;