From d7a54037c2337353108b78a71f423103c9f24f23 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Mon, 4 Nov 2024 11:36:41 +0100 Subject: [PATCH] fix(phpstan): return type --- framework/core/src/Discussion/Discussion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Discussion/Discussion.php b/framework/core/src/Discussion/Discussion.php index 7835ad4a0..699e20f17 100644 --- a/framework/core/src/Discussion/Discussion.php +++ b/framework/core/src/Discussion/Discussion.php @@ -117,7 +117,7 @@ class Discussion extends AbstractModel /** * Start a new discussion. Raises the DiscussionWasStarted event. */ - public static function start(?string $title, User $user, self $model = null): static + public static function start(?string $title, User $user, self $model = null): self { $discussion = $model ?? new static;