fix(phpstan): return type
Some checks are pending
Backend Tests / run (push) Waiting to run
Frontend Workflow / run (push) Waiting to run
Static Code Analysis / run (push) Waiting to run

This commit is contained in:
Sami Mazouz 2024-11-04 11:36:41 +01:00
parent ffea0db012
commit d7a54037c2
No known key found for this signature in database

View File

@ -117,7 +117,7 @@ class Discussion extends AbstractModel
/** /**
* Start a new discussion. Raises the DiscussionWasStarted event. * 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; $discussion = $model ?? new static;