Skip to content

Commit

Permalink
fix:[lar-35] phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersoldattech committed Dec 25, 2024
1 parent dd3b092 commit f1e411a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Spotlight/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f1e411a

Please sign in to comment.