Skip to content

Commit

Permalink
fixup! Fixed issues reported by phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Dec 11, 2024
1 parent ef9997a commit a51258f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,6 @@ parameters:
count: 1
path: src/lib/Mapper/PagerSearchContentToDataMapper.php

-
message: "#^Method Ibexa\\\\Search\\\\Mapper\\\\PagerSearchContentToDataMapper\\:\\:map\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/lib/Mapper/PagerSearchContentToDataMapper.php

-
message: "#^Parameter \\#1 \\$array of function array_filter expects array, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Language\\> given\\.$#"
count: 1
Expand Down
3 changes: 3 additions & 0 deletions src/lib/Mapper/PagerSearchContentToDataMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public function __construct(
$this->locationResolver = $locationResolver;
}

/**
* @phpstan-return TData[]
*/
public function map(Pagerfanta $pager): array
{
$data = [];
Expand Down

0 comments on commit a51258f

Please sign in to comment.