1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

fix(phpstan): return type

This commit is contained in:
Sami Mazouz
2024-11-04 11:36:41 +01:00
parent ffea0db012
commit d7a54037c2

View File

@@ -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;