We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a57a4ff + 7a2903a commit 2dbf694Copy full SHA for 2dbf694
1 file changed
apps/dav/lib/Comments/EntityCollection.php
@@ -163,12 +163,9 @@ public function childExists($name) {
163
164
/**
165
* Sets the read marker to the specified date for the logged in user
166
- *
167
- * @param \DateTime $value
168
- * @return bool
169
*/
170
- public function setReadMarker($value) {
171
- $dateTime = new \DateTime($value);
+ public function setReadMarker(?string $value): bool {
+ $dateTime = new \DateTime($value ?? 'now');
172
$user = $this->userSession->getUser();
173
$this->commentsManager->setReadMark($this->name, $this->id, $dateTime, $user);
174
return true;
0 commit comments