Set as optional argument

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2022-06-13 16:12:35 -03:00
parent 45cdb36d5c
commit b9def2f073
No known key found for this signature in database
GPG key ID: B7AB4B76A7CA7318
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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