diff --git a/app/Spotlight/Article.php b/app/Spotlight/Article.php index b28c33cc..0ee6a22a 100644 --- a/app/Spotlight/Article.php +++ b/app/Spotlight/Article.php @@ -35,7 +35,7 @@ public function searchArticle(string $query): Collection ->published() ->where('title', 'like', "%{$query}%") ->get() - ->map(fn (ArticleModel $article) => new SpotlightSearchResult( + ->map(fn (ArticleModel $article) => new SpotlightSearchResult( // @phpstan-ignore-line $article->slug, $article->title, sprintf('par @%s', $article->user->username)