From b9def2f073e43208a16428fcfcbf631a94aefb76 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 13 Jun 2022 16:12:35 -0300 Subject: [PATCH] Set as optional argument Signed-off-by: Vitor Mattos --- lib/private/Comments/Comment.php | 2 +- lib/public/Comments/IComment.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index b19a901f1b0..c588c5570e7 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.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; } diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php index 279fc6c907e..b0f54563743 100644 --- a/lib/public/Comments/IComment.php +++ b/lib/public/Comments/IComment.php @@ -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 -- 2.39.5