Fix parameter type for EntityCollection::setReadMarker in comments app

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/35814/head
Côme Chilliet 3 years ago
parent 26e413b78d
commit 1bc51a059b
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 7
      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;

Loading…
Cancel
Save