diff --git a/extensions/lock/src/Access/DiscussionPolicy.php b/extensions/lock/src/Access/DiscussionPolicy.php index a8432bfd2..535ba1ed7 100755 --- a/extensions/lock/src/Access/DiscussionPolicy.php +++ b/extensions/lock/src/Access/DiscussionPolicy.php @@ -13,7 +13,6 @@ namespace Flarum\Lock\Access; use Flarum\Core\Access\AbstractPolicy; use Flarum\Core\Discussion; use Flarum\Core\User; -use Illuminate\Contracts\Events\Dispatcher; class DiscussionPolicy extends AbstractPolicy { diff --git a/extensions/lock/src/Event/DiscussionWasLocked.php b/extensions/lock/src/Event/DiscussionWasLocked.php index 1fbe4e38f..f49c46d66 100644 --- a/extensions/lock/src/Event/DiscussionWasLocked.php +++ b/extensions/lock/src/Event/DiscussionWasLocked.php @@ -1,4 +1,5 @@ -content = static::buildContent($isLocked); - $post->time = time(); + $post->content = static::buildContent($isLocked); + $post->time = time(); $post->discussion_id = $discussionId; - $post->user_id = $userId; + $post->user_id = $userId; return $post; } @@ -70,7 +71,7 @@ class DiscussionLockedPost extends AbstractEventPost implements MergeableInterfa /** * Build the content attribute. * - * @param boolean $isLocked Whether or not the discussion is stickied. + * @param bool $isLocked Whether or not the discussion is stickied. * @return array */ public static function buildContent($isLocked)