]> git.localhorst.tv Git - alttp.git/commitdiff
explicitly mark previous as nullable master
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Dec 2025 13:49:00 +0000 (14:49 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Dec 2025 13:49:00 +0000 (14:49 +0100)
app/Models/ChatLib.php

index c2023946c04bf71ff8817dd1ba322d909c6939e1..f6d7ac942cff5c9d349ccc92c6a57e549bdbae26 100644 (file)
@@ -19,7 +19,7 @@ class ChatLib {
                $this->categories = $converted;
        }
 
-       public function addMessage(ChatLog $msg, ChatLog $previous = null) {
+       public function addMessage(ChatLog $msg, ?ChatLog $previous = null) {
                if ($msg->isReply()) {
                        $this->addText($msg->text_content, $msg->getReplyParent());
                } else if (!is_null($previous)) {