From: Daniel Karbach Date: Fri, 12 Dec 2025 13:49:00 +0000 (+0100) Subject: explicitly mark previous as nullable X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=HEAD;p=alttp.git explicitly mark previous as nullable --- diff --git a/app/Models/ChatLib.php b/app/Models/ChatLib.php index c202394..f6d7ac9 100644 --- a/app/Models/ChatLib.php +++ b/app/Models/ChatLib.php @@ -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)) {