]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set as optional argument 32865/head
authorVitor Mattos <vitor@php.rio>
Mon, 13 Jun 2022 19:12:35 +0000 (16:12 -0300)
committerVitor Mattos <vitor@php.rio>
Mon, 13 Jun 2022 19:12:35 +0000 (16:12 -0300)
Signed-off-by: Vitor Mattos <vitor@php.rio>
lib/private/Comments/Comment.php
lib/public/Comments/IComment.php

index b19a901f1b0ccf7771643768cd08192c83493435..c588c5570e7a73726e1cc4a4fe33b7df7e48429f 100644 (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;
        }
index 279fc6c907ed5ccf96d826157ef8eb6c20efdd62..b0f54563743779d38afaf9b13d72e0d6bb7038c7 100644 (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