diff --git a/src/Controllers/ChangeTagSubscription.php b/src/Controllers/ChangeTagSubscription.php index b36700a..5d8b3ca 100644 --- a/src/Controllers/ChangeTagSubscription.php +++ b/src/Controllers/ChangeTagSubscription.php @@ -16,7 +16,6 @@ use Flarum\Tags\Api\Serializer\TagSerializer; use Flarum\Tags\Tag; use Flarum\Tags\TagState; -use Flarum\User\User; use FoF\FollowTags\Event; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Support\Arr; @@ -46,7 +45,7 @@ protected function data(ServerRequestInterface $request, Document $document) $actor->assertRegistered(); $tag = Tag::whereVisibleTo($actor)->findOrFail($id); - + /** @var TagState $state */ $state = $tag->stateFor($actor); diff --git a/src/Jobs/NotificationJob.php b/src/Jobs/NotificationJob.php index a771b10..c29cb6a 100644 --- a/src/Jobs/NotificationJob.php +++ b/src/Jobs/NotificationJob.php @@ -31,7 +31,7 @@ class NotificationJob extends AbstractJob implements ShouldQueue * * @param NotificationSyncer $syncer * @param BlueprintInterface $blueprint - * @param Collection $recipients + * @param Collection $recipients */ protected function sync(NotificationSyncer $syncer, BlueprintInterface $blueprint, Collection $recipients): void { diff --git a/src/Jobs/SendNotificationWhenDiscussionIsReTagged.php b/src/Jobs/SendNotificationWhenDiscussionIsReTagged.php index 3d17b69..8524e84 100644 --- a/src/Jobs/SendNotificationWhenDiscussionIsReTagged.php +++ b/src/Jobs/SendNotificationWhenDiscussionIsReTagged.php @@ -44,6 +44,7 @@ public function handle(NotificationSyncer $notifications) /** * @var Collection|null $tags + * * @phpstan-ignore-next-line */ $tags = $this->discussion->tags; diff --git a/src/Jobs/SendNotificationWhenDiscussionIsStarted.php b/src/Jobs/SendNotificationWhenDiscussionIsStarted.php index c627743..ea66e87 100644 --- a/src/Jobs/SendNotificationWhenDiscussionIsStarted.php +++ b/src/Jobs/SendNotificationWhenDiscussionIsStarted.php @@ -37,6 +37,7 @@ public function handle(NotificationSyncer $notifications) /** * @var Collection|null $tags + * * @phpstan-ignore-next-line */ $tags = $this->discussion->tags; diff --git a/src/Jobs/SendNotificationWhenReplyIsPosted.php b/src/Jobs/SendNotificationWhenReplyIsPosted.php index 80df4e8..fe6cba9 100644 --- a/src/Jobs/SendNotificationWhenReplyIsPosted.php +++ b/src/Jobs/SendNotificationWhenReplyIsPosted.php @@ -41,11 +41,11 @@ public function handle(NotificationSyncer $notifications) return; } - $discussion = $this->post->discussion; /** * @var Collection|null $tags + * * @phpstan-ignore-next-line */ $tags = $discussion->tags;