From f1e411ac106ba12db044202ad5d358ce422e096e Mon Sep 17 00:00:00 2001 From: Chri$ Date: Wed, 25 Dec 2024 12:44:09 +0100 Subject: [PATCH] fix:[lar-35] phpstan error --- app/Spotlight/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)