Set as optional argument

Signed-off-by: Vitor Mattos <vitor@php.rio>
pull/32865/head
Vitor Mattos 4 years ago
parent 45cdb36d5c
commit b9def2f073
No known key found for this signature in database
GPG Key ID: B7AB4B76A7CA7318
  1. 2
      lib/private/Comments/Comment.php
  2. 2
      lib/public/Comments/IComment.php

@ -352,7 +352,7 @@ class Comment implements IComment {
/**
* @inheritDoc
*/
public function setLatestChildDateTime(\DateTime $dateTime = null) {
public function setLatestChildDateTime(?\DateTime $dateTime = null) {
$this->data['latestChildDT'] = $dateTime;
return $this;
}

@ -234,7 +234,7 @@ interface IComment {
* @return IComment
* @since 9.0.0
*/
public function setLatestChildDateTime(\DateTime $dateTime = null);
public function setLatestChildDateTime(?\DateTime $dateTime = null);
/**
* returns the object type the comment is attached to

Loading…
Cancel
Save