From 84c59052066d959c5d3f1b0b46b7e36b7f5b2afd Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 12 Dec 2025 14:49:00 +0100 Subject: [PATCH] explicitly mark previous as nullable --- app/Models/ChatLib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.47.3