mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 08:40:05 +08:00
fix(phpstan): return type
This commit is contained in:
parent
ffea0db012
commit
d7a54037c2
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user