mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
fix(phpstan): return type
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user