Skip to content

Commit

Permalink
fix return types
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Oct 4, 2024
1 parent 617df59 commit f558c6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EventListener/NewsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(private readonly NewsCriteriaBuilder $searchBuilder)
}

#[AsHook('newsListCountItems')]
public function onNewsListCountItems(array $archives, bool|null $featured, ModuleNewsList $module): int
public function onNewsListCountItems(array $archives, bool|null $featured, ModuleNewsList $module): int|false
{
try {
if (null === ($criteria = $this->getCriteria($archives, $featured, $module))) {
Expand All @@ -43,10 +43,10 @@ public function onNewsListCountItems(array $archives, bool|null $featured, Modul
}

/**
* @return Collection<NewsModel>|null
* @return Collection<NewsModel>|null|false
*/
#[AsHook('newsListFetchItems')]
public function onNewsListFetchItems(array $archives, bool|null $featured, int $limit, int $offset, ModuleNewsList $module): Collection|null
public function onNewsListFetchItems(array $archives, bool|null $featured, int $limit, int $offset, ModuleNewsList $module): Collection|null|false
{
try {
if (null === ($criteria = $this->getCriteria($archives, $featured, $module))) {
Expand Down

0 comments on commit f558c6a

Please sign in to comment.